(method, calledArg, expectedArg, diff string)
| 2374 | } |
| 2375 | |
| 2376 | func 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 |
| 2383 | func ConcurrencyTestMethod(m *Mock) { |
no outgoing calls
no test coverage detected