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

Method WithinRange

internal/testify/require/require_forward.go:1576–1581  ·  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

1574//
1575// a.WithinRange(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second))
1576func (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//

Callers

nothing calls this directly

Calls 2

WithinRangeFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected