WithinDurationf asserts that the two times are within duration delta of each other. a.WithinDurationf(time.Now(), time.Now(), 10*time.Second, "error message %s", "formatted")
(expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{})
| 1562 | // |
| 1563 | // a.WithinDurationf(time.Now(), time.Now(), 10*time.Second, "error message %s", "formatted") |
| 1564 | func (a *Assertions) WithinDurationf(expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{}) bool { |
| 1565 | if h, ok := a.t.(tHelper); ok { |
| 1566 | h.Helper() |
| 1567 | } |
| 1568 | return WithinDurationf(a.t, expected, actual, delta, msg, args...) |
| 1569 | } |
| 1570 | |
| 1571 | // WithinRange asserts that a time is within a time range (inclusive). |
| 1572 | // |
nothing calls this directly
no test coverage detected