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{})
| 843 | // |
| 844 | // assert.WithinRangef(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(time.Second), "error message %s", "formatted") |
| 845 | func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{}) bool { |
| 846 | if h, ok := t.(tHelper); ok { |
| 847 | h.Helper() |
| 848 | } |
| 849 | return WithinRange(t, actual, start, end, append([]interface{}{msg}, args...)...) |
| 850 | } |
| 851 | |
| 852 | // YAMLEqf asserts that two YAML strings are equivalent. |
| 853 | func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool { |
no test coverage detected