File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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.
103104type 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.
You can’t perform that action at this time.
0 commit comments