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

Function unexpectedCallRegex

mock/mock_test.go:2376–2380  ·  view source on GitHub ↗
(method, calledArg, expectedArg, diff string)

Source from the content-addressed store, hash-verified

2374}
2375
2376func unexpectedCallRegex(method, calledArg, expectedArg, diff string) string {
2377 rMethod := regexp.QuoteMeta(method)
2378 return fmt.Sprintf(`\s+mock: Unexpected Method Call\s+-*\s+%s\s+%s\s+The closest call I have is:\s+%s\s+%s\s+%s\nat: \[[^\]]+mock\/mock_test.go`,
2379 rMethod, calledArg, rMethod, expectedArg, diff)
2380}
2381
2382//go:noinline
2383func ConcurrencyTestMethod(m *Mock) {

Calls

no outgoing calls

Tested by

no test coverage detected