(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestIsExpiredAtOrInWithAmbiguousTime(t *testing.T) { |
| 87 | now := time.Now() |
| 88 | within := 5 * time.Minute |
| 89 | at := now.Add(-10 * time.Minute) |
| 90 | in := 10 * time.Minute |
| 91 | |
| 92 | expired, ok := IsExpiredAtOrIn(now, within, at, in) |
| 93 | |
| 94 | assert.Equal(t, now.Add(in), expired) |
| 95 | assert.False(t, ok) |
| 96 | } |
nothing calls this directly
no test coverage detected