Skip to content

Commit 5f831d4

Browse files
rubensayshiernesto-jimenez
authored andcommitted
Print missing FAIL during AssertExpectation
1 parent 87b1dfb commit 5f831d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mock/mock.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ func (m *Mock) AssertExpectations(t TestingT) bool {
410410
if expectedCall.Repeatability > 0 {
411411
somethingMissing = true
412412
failedExpectations++
413+
t.Logf("FAIL:\t%s(%s)", expectedCall.Method, expectedCall.Arguments.String())
413414
} else {
414415
t.Logf("PASS:\t%s(%s)", expectedCall.Method, expectedCall.Arguments.String())
415416
}

0 commit comments

Comments
 (0)