]> Cypherpunks repositories - gostls13.git/commit
testing: add Attr
authorDamien Neil <dneil@google.com>
Thu, 3 Apr 2025 00:37:34 +0000 (17:37 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 21 May 2025 22:37:35 +0000 (15:37 -0700)
commit3cc8b532f9d561397dd0c66496e1e1a82667c926
tree6bc6c15b759b77a4b96225e03980e1dc5980d00a
parent763963505e39b753d820ee9aea4791ad5bcc0274
testing: add Attr

Add a new Attr method to testing.TB that emits a test attribute.
An attribute is an arbitrary key/value pair.

Fixes #43936

Change-Id: I7ef299efae41f2cf39f2dc61ad4cdd4c3975cdb6
Reviewed-on: https://go-review.googlesource.com/c/go/+/662437
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
api/next/43936.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/testing/43936.md [new file with mode: 0644]
src/cmd/internal/test2json/test2json.go
src/cmd/internal/test2json/testdata/attr.json [new file with mode: 0644]
src/cmd/internal/test2json/testdata/attr.test [new file with mode: 0644]
src/testing/testing.go
src/testing/testing_test.go