aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorBharath Kumar Uppala <uppala.bharath@gmail.com>2021-11-21 02:15:39 +0530
committerEmmanuel Odeke <emmanuel@orijtech.com>2021-11-22 19:43:16 +0000
commit8f559bcb4666b2358c227aa1bd3a82f3b806d45a (patch)
tree1410912cc7b0d9ff9478d2447c2e478535b9e881 /src/testing/testing.go
parent81031300a7139cfb59f704bcbb97e333590aacd0 (diff)
downloadgo-8f559bcb4666b2358c227aa1bd3a82f3b806d45a.tar.xz
testing: mention that TB also covers the new type F
Fixes #48146 Change-Id: I7c667a7915db81558514bc9fada6898c565eb0fd Reviewed-on: https://go-review.googlesource.com/c/go/+/365894 Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Katie Hockman <katie@golang.org> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Katie Hockman <katie@golang.org> Trust: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/testing/testing.go')
-rw-r--r--src/testing/testing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 3458b46d97..e4b7aa30e5 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -740,7 +740,7 @@ func fmtDuration(d time.Duration) string {
return fmt.Sprintf("%.2fs", d.Seconds())
}
-// TB is the interface common to T and B.
+// TB is the interface common to T, B, and F.
type TB interface {
Cleanup(func())
Error(args ...interface{})