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{})
| 818 | // |
| 819 | // assert.WithinRangef(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), "error message %s", "formatted") |
| 820 | func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{}) bool { |
| 821 | if h, ok := t.(tHelper); ok { |
| 822 | h.Helper() |
| 823 | } |
| 824 | return WithinRange(t, actual, start, end, append([]interface{}{msg}, args...)...) |
| 825 | } |
| 826 | |
| 827 | // YAMLEqf asserts that two YAML strings are equivalent. |
| 828 | func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool { |
no test coverage detected