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

Function WithinRangef

internal/testify/assert/assertion_format.go:794–799  ·  view source on GitHub ↗

WithinRangef asserts that a time is within a time range (inclusive). assert.WithinRangef(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), "error message %s", "formatted")

(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

792//
793// assert.WithinRangef(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), "error message %s", "formatted")
794func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{}) bool {
795 if h, ok := t.(tHelper); ok {
796 h.Helper()
797 }
798 return WithinRange(t, actual, start, end, append([]interface{}{msg}, args...)...)
799}
800
801// Zerof asserts that i is the zero value for its type.
802func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) bool {

Callers 2

WithinRangefFunction · 0.92
WithinRangefMethod · 0.70

Calls 2

WithinRangeFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…