MCPcopy
hub / github.com/github/git-sizer / TestLimits64

Function TestLimits64

counts/human_test.go:121–128  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

119}
120
121func TestLimits64(t *testing.T) {
122 assert := assert.New(t)
123
124 c := counts.NewCount64(0xffffffffffffffff)
125 number, unit := counts.Metric.Format(c, "B")
126 assert.Equalf("∞", number, "Number for Count64(0xffffffffffffffff) in metric")
127 assert.Equalf("B", unit, "Unit for Count64(0xffffffffffffffff) in metric")
128}

Callers

nothing calls this directly

Calls 2

NewCount64Function · 0.92
FormatMethod · 0.80

Tested by

no test coverage detected