MCPcopy Create free account
hub / github.com/github/gh-aw / TestTimeBetween

Function TestTimeBetween

pkg/cli/outcome_eval_test.go:181–187  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

179}
180
181func TestTimeBetween(t *testing.T) {
182 hours := timeBetween("2026-05-12T00:00:00Z", "2026-05-12T02:30:00Z")
183 assert.InDelta(t, 2.5, hours, 0.01, "2.5 hours between timestamps")
184
185 assert.InDelta(t, 0.0, timeBetween("bad", "2026-05-12T00:00:00Z"), 1e-12, "bad from timestamp")
186 assert.InDelta(t, 0.0, timeBetween("2026-05-12T00:00:00Z", "bad"), 1e-12, "bad to timestamp")
187}
188
189func TestEvaluateOutcomesSkipsNoopAndMetadata(t *testing.T) {
190 items := []CreatedItemReport{

Callers

nothing calls this directly

Calls 1

timeBetweenFunction · 0.85

Tested by

no test coverage detected