docs(tinyssert): make NewDisableAssertion docs follow revive's rules
This commit is contained in:
@@ -520,10 +520,10 @@ func isTest(name, prefix string) bool {
|
|||||||
|
|
||||||
type disabledAssertions struct{}
|
type disabledAssertions struct{}
|
||||||
|
|
||||||
// Creates a new implementation of Assertions that always return true, with the exception
|
// NewDisabledAssertions creates a new implementation of Assertions that always return true, with
|
||||||
// of [Assertions.Fail] and [Assertions.FailNow] which returns false, and [Assertions.CallerInfo]
|
// the exception of [Assertions.Fail] and [Assertions.FailNow] which returns false, and
|
||||||
// which returns the actual caller info (uses [CallerInfo] underlying). It is useful it you use
|
// [Assertions.CallerInfo] which returns the actual caller info (uses [CallerInfo] underlying).
|
||||||
// assertions in production and want to disable them without changing any code.
|
// It is useful it you use assertions in production and want to disable them without changing any code.
|
||||||
func NewDisabledAssertions() Assertions {
|
func NewDisabledAssertions() Assertions {
|
||||||
return &disabledAssertions{}
|
return &disabledAssertions{}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user