BetweenValues asserts start <= d <= end
(t testing.TB, d, start, end T, msgAndArgs ...interface{})
| 33 | |
| 34 | // BetweenValues asserts start <= d <= end |
| 35 | func 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 |
| 41 | func BetweenValuesEx[T constraints.Ordered](t testing.TB, d, start, end T, msgAndArgs ...interface{}) { |
nothing calls this directly
no outgoing calls
no test coverage detected