mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
Fix vet warnings and go generate to update docs
This commit is contained in:
parent
3104bf5483
commit
c33f336b92
@ -690,7 +690,7 @@ func TestNoError(t *testing.T) {
|
||||
}()
|
||||
|
||||
if err == nil { // err is not nil here!
|
||||
t.Error("Error should be nil due to empty interface", err)
|
||||
t.Errorf("Error should be nil due to empty interface: %s", err)
|
||||
}
|
||||
|
||||
False(t, NoError(mockT, err), "NoError should fail with empty error interface")
|
||||
@ -724,7 +724,7 @@ func TestError(t *testing.T) {
|
||||
}()
|
||||
|
||||
if err == nil { // err is not nil here!
|
||||
t.Error("Error should be nil due to empty interface", err)
|
||||
t.Errorf("Error should be nil due to empty interface: %s", err)
|
||||
}
|
||||
|
||||
True(t, Error(mockT, err), "Error should pass with empty error interface")
|
||||
|
Loading…
x
Reference in New Issue
Block a user