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{})
| 1664 | // |
| 1665 | // a.WithinDurationf(time.Now(), time.Now(), 10*time.Second, "error message %s", "formatted") |
| 1666 | func (a *Assertions) WithinDurationf(expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{}) bool { |
| 1667 | if h, ok := a.t.(tHelper); ok { |
| 1668 | h.Helper() |
| 1669 | } |
| 1670 | return WithinDurationf(a.t, expected, actual, delta, msg, args...) |
| 1671 | } |
| 1672 | |
| 1673 | // WithinRange asserts that a time is within a time range (inclusive). |
| 1674 | // |
nothing calls this directly
no test coverage detected