diff --git a/call.go b/call.go index 8fc95d2..7e0dd60 100644 --- a/call.go +++ b/call.go @@ -116,3 +116,7 @@ func (c Call) Equal(other Call) bool { otherInput, _ := other.Input() return input != nil && otherInput != nil && proto.Equal(input, otherInput) } + +func (c Call) String() string { + return c.message.String() +} diff --git a/dispatchtest/assert.go b/dispatchtest/assert.go index 2f41736..a49666c 100644 --- a/dispatchtest/assert.go +++ b/dispatchtest/assert.go @@ -14,7 +14,7 @@ func AssertCalls(t *testing.T, got, want []dispatch.Call) { } for i, call := range got { if !call.Equal(want[i]) { - t.Errorf("unexpected call %d: got %#v, want %#v", i, call, want[i]) + t.Errorf("unexpected call %d: got %v, want %v", i, call, want[i]) } } } @@ -23,7 +23,7 @@ func AssertCall(t *testing.T, got, want dispatch.Call) { t.Helper() if !got.Equal(want) { - t.Errorf("unexpected call: got %#v, want %#v", got, want) + t.Errorf("unexpected call: got %v, want %v", got, want) } }