WithinRangef asserts that a time is within a time range (inclusive). a.WithinRangef(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), "error message %s", "formatted")
(actual time.Time, start time.Time, end time.Time, msg string, args ...interface{})
| 1582 | // |
| 1583 | // a.WithinRangef(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), "error message %s", "formatted") |
| 1584 | func (a *Assertions) WithinRangef(actual time.Time, start time.Time, end time.Time, msg string, args ...interface{}) bool { |
| 1585 | if h, ok := a.t.(tHelper); ok { |
| 1586 | h.Helper() |
| 1587 | } |
| 1588 | return WithinRangef(a.t, actual, start, end, msg, args...) |
| 1589 | } |
| 1590 | |
| 1591 | // Zero asserts that i is the zero value for its type. |
| 1592 | func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) bool { |
nothing calls this directly
no test coverage detected