| 2322 | } |
| 2323 | |
| 2324 | func TestClosestCallMismatchedArgumentValueInformation(t *testing.T) { |
| 2325 | t.Parallel() |
| 2326 | |
| 2327 | defer func() { |
| 2328 | if r := recover(); r != nil { |
| 2329 | matchingExp := regexp.MustCompile(unexpectedCallRegex(`GetTime(int)`, "0: 1", "0: 999", `Diff: 0: FAIL: \(int=1\) != \(int=999\)`)) |
| 2330 | assert.Regexp(t, matchingExp, r) |
| 2331 | } |
| 2332 | }() |
| 2333 | |
| 2334 | m := new(timer) |
| 2335 | m.On("GetTime", 999).Return("SomeTime").Once() |
| 2336 | |
| 2337 | _ = m.GetTime(1) |
| 2338 | } |
| 2339 | |
| 2340 | func Test_isBetterMatchThanReturnsFalseIfCandidateCallIsNil(t *testing.T) { |
| 2341 | t.Parallel() |