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)
|
got := litter.Sdump(m.Logged)
|
||||||
want := litter.Sdump(wantLogged)
|
want := litter.Sdump(wantLogged)
|
||||||
if got != want {
|
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",
|
name: "different",
|
||||||
fields: fields{Logged: []string{"same"}},
|
fields: fields{Logged: []string{"same"}},
|
||||||
args: args{wantLogged: []string{"different"}},
|
args: args{wantLogged: []string{"different"}},
|
||||||
want: []string{`Mock() got []string{
|
want: []string{`Logger() got []string{
|
||||||
"same",
|
"same",
|
||||||
}, want []string{
|
}, want []string{
|
||||||
"different",
|
"different",
|
||||||
|
|||||||
Reference in New Issue
Block a user