MCPcopy
hub / github.com/ipfs/kubo / TestByteSizeUnit

Function TestByteSizeUnit

thirdparty/unit/unit_test.go:7–26  ·  view source on GitHub ↗

and the award for most meta goes to...

(t *testing.T)

Source from the content-addressed store, hash-verified

5// and the award for most meta goes to...
6
7func TestByteSizeUnit(t *testing.T) {
8 if 1*KB != 1*1024 {
9 t.Fatal(1 * KB)
10 }
11 if 1*MB != 1*1024*1024 {
12 t.Fail()
13 }
14 if 1*GB != 1*1024*1024*1024 {
15 t.Fail()
16 }
17 if 1*TB != 1*1024*1024*1024*1024 {
18 t.Fail()
19 }
20 if 1*PB != 1*1024*1024*1024*1024*1024 {
21 t.Fail()
22 }
23 if 1*EB != 1*1024*1024*1024*1024*1024*1024 {
24 t.Fail()
25 }
26}

Callers

nothing calls this directly

Calls 1

FatalMethod · 0.80

Tested by

no test coverage detected