(t *testing.T)
| 253 | } |
| 254 | |
| 255 | func TestWithinDuration(t *testing.T) { |
| 256 | |
| 257 | a := time.Now() |
| 258 | b := a.Add(10 * time.Second) |
| 259 | |
| 260 | WithinDuration(t, a, b, 15*time.Second) |
| 261 | |
| 262 | mockT := new(MockT) |
| 263 | WithinDuration(mockT, a, b, 5*time.Second) |
| 264 | if !mockT.Failed { |
| 265 | t.Error("Check should fail") |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | func TestInDelta(t *testing.T) { |
| 270 |
nothing calls this directly
no test coverage detected
searching dependent graphs…