diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2022-06-29 12:09:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 12:09:48 +0000 |
commit | 6904b1a610327588ae01b40aa3fd82725f8880f9 (patch) | |
tree | 2935ef698d08f0e8a254adc99ee636e1430cd1e3 /vendor/github.com/stretchr/testify/assert/assertion_format.go | |
parent | 6e910a08dbbf5f74b7aeb184669c94e4c4d08228 (diff) | |
download | podman-6904b1a610327588ae01b40aa3fd82725f8880f9.tar.gz podman-6904b1a610327588ae01b40aa3fd82725f8880f9.tar.bz2 podman-6904b1a610327588ae01b40aa3fd82725f8880f9.zip |
build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/stretchr/testify/assert/assertion_format.go')
-rw-r--r-- | vendor/github.com/stretchr/testify/assert/assertion_format.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/stretchr/testify/assert/assertion_format.go b/vendor/github.com/stretchr/testify/assert/assertion_format.go index 27e2420ed..7880b8f94 100644 --- a/vendor/github.com/stretchr/testify/assert/assertion_format.go +++ b/vendor/github.com/stretchr/testify/assert/assertion_format.go @@ -736,6 +736,16 @@ func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta tim return WithinDuration(t, expected, actual, delta, append([]interface{}{msg}, args...)...) } +// 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") +func WithinRangef(t TestingT, actual time.Time, start time.Time, end time.Time, msg string, args ...interface{}) bool { + if h, ok := t.(tHelper); ok { + h.Helper() + } + return WithinRange(t, actual, start, end, append([]interface{}{msg}, args...)...) +} + // YAMLEqf asserts that two YAML strings are equivalent. func YAMLEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool { if h, ok := t.(tHelper); ok { |