Time
Asserting Times And Durations
Assertions
All links point to https://pkg.go.dev/github.com/go-openapi/testify/v2
This domain exposes 2 functionalities.
WithinDuration
WithinDuration asserts that the two times are within duration delta of each other.
| Signature | Usage |
|---|---|
assertions.WithinDuration(t T, expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...any) bool | internal implementation |
Source: github.com/go-openapi/testify/v2/internal/assertions#WithinDuration
WithinRange
WithinRange asserts that a time is within a time range (inclusive).
| Signature | Usage |
|---|---|
assertions.WithinRange(t T, actual time.Time, start time.Time, end time.Time, msgAndArgs ...any) bool | internal implementation |
Source: github.com/go-openapi/testify/v2/internal/assertions#WithinRange
Generated with github.com/go-openapi/testify/v2/codegen