chore: change Mock to Logger to me error source more clear

This commit is contained in:
2021-01-18 13:06:00 +01:00
parent 6e69a40ac1
commit 8bf207511a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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",