MCPcopy
hub / github.com/stretchr/testify / TestIssue1785ArgumentWithMutatingStringer

Function TestIssue1785ArgumentWithMutatingStringer

mock/mock_test.go:2436–2443  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2434}
2435
2436func TestIssue1785ArgumentWithMutatingStringer(t *testing.T) {
2437 m := &Mock{}
2438 m.On("Method", &mutatingStringer{N: 2})
2439 m.On("Method", &mutatingStringer{N: 1})
2440 m.MethodCalled("Method", &mutatingStringer{N: 1})
2441 m.MethodCalled("Method", &mutatingStringer{N: 2})
2442 m.AssertExpectations(t)
2443}

Callers

nothing calls this directly

Calls 3

OnMethod · 0.95
MethodCalledMethod · 0.95
AssertExpectationsMethod · 0.95

Tested by

no test coverage detected