Skip to content

Commit 7beca78

Browse files
authored
Merge pull request #234 from dnephin/small-godoc-improvement
Small godoc improvement
2 parents fac3030 + fb51fc8 commit 7beca78

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

assert/assert.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ import (
9999
"gotest.tools/v3/internal/assert"
100100
)
101101

102-
// BoolOrComparison can be a bool, or cmp.Comparison. See Assert() for usage.
102+
// BoolOrComparison can be a bool, cmp.Comparison, or error. See Assert for
103+
// details about how this type is used.
103104
type BoolOrComparison interface{}
104105

105106
// TestingT is the subset of testing.T used by the assert package.
@@ -131,6 +132,11 @@ type helperT interface {
131132
// A nil value is considered success, and a non-nil error is a failure.
132133
// The return value of error.Error is used as the failure message.
133134
//
135+
//
136+
// Extra details can be added to the failure message using msgAndArgs. msgAndArgs
137+
// may be either a single string, or a format string and args that will be
138+
// passed to fmt.Sprintf.
139+
//
134140
// Assert uses t.FailNow to fail the test. Like t.FailNow, Assert must be called
135141
// from the goroutine running the test function, not from other
136142
// goroutines created during the test. Use Check from other goroutines.

0 commit comments

Comments
 (0)