MCPcopy Index your code
hub / github.com/expr-lang/expr / WithinRange

Method WithinRange

internal/testify/assert/assertion_forward.go:1574–1579  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

1572//
1573// a.WithinRange(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second))
1574func (a *Assertions) WithinRange(actual time.Time, start time.Time, end time.Time, msgAndArgs ...interface{}) bool {
1575 if h, ok := a.t.(tHelper); ok {
1576 h.Helper()
1577 }
1578 return WithinRange(a.t, actual, start, end, msgAndArgs...)
1579}
1580
1581// WithinRangef asserts that a time is within a time range (inclusive).
1582//

Callers

nothing calls this directly

Calls 2

WithinRangeFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected