WithinDurationf asserts that the two times are within duration delta of each other. assert.WithinDurationf(t, time.Now(), time.Now(), 10*time.Second, "error message %s", "formatted")
(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{})
| 833 | // |
| 834 | // assert.WithinDurationf(t, time.Now(), time.Now(), 10*time.Second, "error message %s", "formatted") |
| 835 | func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{}) bool { |
| 836 | if h, ok := t.(tHelper); ok { |
| 837 | h.Helper() |
| 838 | } |
| 839 | return WithinDuration(t, expected, actual, delta, append([]interface{}{msg}, args...)...) |
| 840 | } |
| 841 | |
| 842 | // WithinRangef asserts that a time is within a time range (inclusive). |
| 843 | // |
no test coverage detected