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

Function TestIsFinite

pkg/cli/token_usage_test.go:265–271  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

263}
264
265func TestIsFinite(t *testing.T) {
266 assert.True(t, isFinite(1.25))
267 assert.True(t, isFinite(0))
268 assert.False(t, isFinite(math.NaN()))
269 assert.False(t, isFinite(math.Inf(1)))
270 assert.False(t, isFinite(math.Inf(-1)))
271}
272
273func TestSumAICFromUsageJSONLFiles(t *testing.T) {
274 t.Run("returns error for missing file", func(t *testing.T) {

Callers

nothing calls this directly

Calls 1

isFiniteFunction · 0.85

Tested by

no test coverage detected