Skip to content

Commit

Permalink
Merge pull request #234 from dnephin/small-godoc-improvement
Browse files Browse the repository at this point in the history
Small godoc improvement
  • Loading branch information
dnephin committed Apr 23, 2022
2 parents fac3030 + fb51fc8 commit 7beca78
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assert/assert.go
Expand Up @@ -99,7 +99,8 @@ import (
"gotest.tools/v3/internal/assert"
)

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

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

0 comments on commit 7beca78

Please sign in to comment.