MCPcopy Create free account
hub / github.com/expr-lang/expr / WithinRangef

Method WithinRangef

internal/testify/require/require_forward.go:1586–1591  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1584//
1585// a.WithinRangef(time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), "error message %s", "formatted")
1586func (a *Assertions) WithinRangef(actual time.Time, start time.Time, end time.Time, msg string, args ...interface{}) {
1587 if h, ok := a.t.(tHelper); ok {
1588 h.Helper()
1589 }
1590 WithinRangef(a.t, actual, start, end, msg, args...)
1591}
1592
1593// Zero asserts that i is the zero value for its type.
1594func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) {

Callers

nothing calls this directly

Calls 2

WithinRangefFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected