WithinRangef asserts that a time is within a time range (inclusive). assert.WithinRangef(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), "error message %s", "formatted")
(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{})
| 792 | // |
| 793 | // assert.WithinRangef(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), "error message %s", "formatted") |
| 794 | func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{}) bool { |
| 795 | if h, ok := t.(tHelper); ok { |
| 796 | h.Helper() |
| 797 | } |
| 798 | return WithinRange(t, actual, start, end, append([]interface{}{msg}, args...)...) |
| 799 | } |
| 800 | |
| 801 | // Zerof asserts that i is the zero value for its type. |
| 802 | func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) bool { |
no test coverage detected
searching dependent graphs…