We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cddffc commit 18535b6Copy full SHA for 18535b6
tests/context_accepter_mock_test.go
@@ -48,6 +48,16 @@ func TestContextAccepterMock_WhenThenMatchAnycontext(t *testing.T) {
48
assert.Equal(t, 42, result)
49
}
50
51
+func TestContextAccepterMock_WhenThenMatchAnycontextWithoutArgs(t *testing.T) {
52
+ tester := NewTesterMock(t)
53
+ tester.CleanupMock.Return().HelperMock.Return()
54
+
55
+ mock := NewContextAccepterMock(tester).
56
+ AcceptContextMock.When(minimock.AnyContext).Then()
57
58
+ mock.AcceptContext(context.TODO())
59
+}
60
61
func TestContextAccepterMock_DiffWithoutAnyContext(t *testing.T) {
62
tester := NewTesterMock(t)
63
tester.CleanupMock.Return().HelperMock.Return()
0 commit comments