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{})
| 782 | // |
| 783 | // assert.WithinDurationf(t, time.Now(), time.Now(), 10*time.Second, "error message %s", "formatted") |
| 784 | func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{}) bool { |
| 785 | if h, ok := t.(tHelper); ok { |
| 786 | h.Helper() |
| 787 | } |
| 788 | return WithinDuration(t, expected, actual, delta, append([]interface{}{msg}, args...)...) |
| 789 | } |
| 790 | |
| 791 | // WithinRangef asserts that a time is within a time range (inclusive). |
| 792 | // |
no test coverage detected
searching dependent graphs…