MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / TestIsExpiredAtOrInWithAmbiguousTime

Function TestIsExpiredAtOrInWithAmbiguousTime

tools/time_tools_test.go:86–96  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

84}
85
86func 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}

Callers

nothing calls this directly

Calls 3

IsExpiredAtOrInFunction · 0.85
AddMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected