(t *testing.T, expected, actual time.Time)
| 250 | } |
| 251 | |
| 252 | func assertTimeEqual(t *testing.T, expected, actual time.Time) { |
| 253 | t.Helper() |
| 254 | // Compare the dates using a numeric zone as there are cases where |
| 255 | // time.Parse will assign a dummy location. |
| 256 | qt.Assert(t, actual.Format(time.RFC1123Z), qt.Equals, expected.Format(time.RFC1123Z)) |
| 257 | } |
| 258 | |
| 259 | func assertLocationEqual(t *testing.T, expected, actual *time.Location) { |
| 260 | t.Helper() |
no outgoing calls
no test coverage detected
searching dependent graphs…