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

Function TestLimits32

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

Source from the content-addressed store, hash-verified

110}
111
112func TestLimits32(t *testing.T) {
113 assert := assert.New(t)
114
115 c := counts.NewCount32(0xffffffff)
116 number, unit := counts.Metric.Format(c, "cd")
117 assert.Equalf("∞", number, "Number for Count32(0xffffffff) in metric")
118 assert.Equalf("cd", unit, "Unit for Count32(0xffffffff) in metric")
119}
120
121func TestLimits64(t *testing.T) {
122 assert := assert.New(t)

Callers

nothing calls this directly

Calls 2

NewCount32Function · 0.92
FormatMethod · 0.80

Tested by

no test coverage detected