MCPcopy Create free account
hub / github.com/apache/kvrocks / BetweenValues

Function BetweenValues

tests/gocase/util/assertions.go:35–38  ·  view source on GitHub ↗

BetweenValues asserts start <= d <= end

(t testing.TB, d, start, end T, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

33
34// BetweenValues asserts start <= d <= end
35func BetweenValues[T constraints.Ordered](t testing.TB, d, start, end T, msgAndArgs ...interface{}) {
36 require.GreaterOrEqual(t, d, start, msgAndArgs...)
37 require.LessOrEqual(t, d, end, msgAndArgs...)
38}
39
40// BetweenValuesEx asserts start < d < end
41func BetweenValuesEx[T constraints.Ordered](t testing.TB, d, start, end T, msgAndArgs ...interface{}) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected