We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a5806e commit c2eec00Copy full SHA for c2eec00
assert/asserter.go
@@ -54,6 +54,8 @@ const officialTestOutputPrefix = " "
54
// Note. We use the pattern where we build defaultMsg argument reaady in cases
55
// like 'got: X, want: Y'. This hits two birds with one stone: we have automatic
56
// and correct assert messages, and we can add information to it if we want to.
57
+// If asserter is Plain (isErrorOnly()) user wants to override automatic assert
58
+// messgages with our given, usually simple message.
59
func (asserter Asserter) reportAssertionFault(defaultMsg string, a []any) {
60
if asserter.hasStackTrace() {
61
if asserter.isUnitTesting() {
0 commit comments