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{})
| 1574 | // |
| 1575 | // a.WithinRange(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second)) |
| 1576 | func (a *Assertions) WithinRange(actual time.Time, start time.Time, end time.Time, msgAndArgs ...interface{}) { |
| 1577 | if h, ok := a.t.(tHelper); ok { |
| 1578 | h.Helper() |
| 1579 | } |
| 1580 | WithinRange(a.t, actual, start, end, msgAndArgs...) |
| 1581 | } |
| 1582 | |
| 1583 | // WithinRangef asserts that a time is within a time range (inclusive). |
| 1584 | // |
nothing calls this directly
no test coverage detected