chore: change Mock to Logger to me error source more clear
This commit is contained in:
@@ -39,7 +39,7 @@ func (m *Mock) Check(t testing.TB, wantLogged []string) {
|
||||
got := litter.Sdump(m.Logged)
|
||||
want := litter.Sdump(wantLogged)
|
||||
if got != want {
|
||||
t.Errorf("Mock() got %s, want %s", got, want)
|
||||
t.Errorf("Logger() got %s, want %s", got, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ func TestMock_Check(t *testing.T) {
|
||||
name: "different",
|
||||
fields: fields{Logged: []string{"same"}},
|
||||
args: args{wantLogged: []string{"different"}},
|
||||
want: []string{`Mock() got []string{
|
||||
want: []string{`Logger() got []string{
|
||||
"same",
|
||||
}, want []string{
|
||||
"different",
|
||||
|
||||
Reference in New Issue
Block a user