MCPcopy Create free account
hub / github.com/akyoto/q / TestSizeInt

Function TestSizeInt

src/cpu/SizeInt_test.go:11–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestSizeInt(t *testing.T) {
12 assert.Equal(t, cpu.SizeInt(0), 1)
13 assert.Equal(t, cpu.SizeInt(math.MinInt8), 1)
14 assert.Equal(t, cpu.SizeInt(math.MaxInt8), 1)
15 assert.Equal(t, cpu.SizeInt(math.MinInt16), 2)
16 assert.Equal(t, cpu.SizeInt(math.MaxInt16), 2)
17 assert.Equal(t, cpu.SizeInt(math.MinInt32), 4)
18 assert.Equal(t, cpu.SizeInt(math.MaxInt32), 4)
19 assert.Equal(t, cpu.SizeInt(math.MinInt64), 8)
20 assert.Equal(t, cpu.SizeInt(math.MaxInt64), 8)
21}

Callers

nothing calls this directly

Calls 1

SizeIntFunction · 0.92

Tested by

no test coverage detected