WithinRange asserts that a time is within a time range (inclusive). a.WithinRange(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second))
(actual time.Time, start time.Time, end time.Time, msgAndArgs ...interface{})
| 1675 | // |
| 1676 | // a.WithinRange(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second)) |
| 1677 | func (a *Assertions) WithinRange(actual time.Time, start time.Time, end time.Time, msgAndArgs ...interface{}) { |
| 1678 | if h, ok := a.t.(tHelper); ok { |
| 1679 | h.Helper() |
| 1680 | } |
| 1681 | WithinRange(a.t, actual, start, end, msgAndArgs...) |
| 1682 | } |
| 1683 | |
| 1684 | // WithinRangef asserts that a time is within a time range (inclusive). |
| 1685 | // |
nothing calls this directly
no test coverage detected