(t *testing.T)
| 2594 | } |
| 2595 | |
| 2596 | func TestTimeEqualityErrorFormatting(t *testing.T) { |
| 2597 | mockT := new(mockTestingT) |
| 2598 | |
| 2599 | Equal(mockT, time.Second*2, time.Millisecond) |
| 2600 | |
| 2601 | expectedErr := "\\s+Error Trace:\\s+Error:\\s+Not equal:\\s+\n\\s+expected: 2s\n\\s+actual\\s+: 1ms\n" |
| 2602 | Regexp(t, regexp.MustCompile(expectedErr), mockT.errorString()) |
| 2603 | } |
| 2604 | |
| 2605 | func TestDiffEmptyCases(t *testing.T) { |
| 2606 | Equal(t, "", diff(nil, nil)) |
nothing calls this directly
no test coverage detected