MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestFormatOnt

Function TestFormatOnt

cmd/utils/utils_test.go:47–52  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestFormatOnt(t *testing.T) {
48 assert.Equal(t, "0", FormatOnt(0))
49 assert.Equal(t, "1", FormatOnt(1))
50 assert.Equal(t, "100", FormatOnt(100))
51 assert.Equal(t, "1000000000", FormatOnt(1000000000))
52}
53
54func TestParseOnt(t *testing.T) {
55 assert.Equal(t, uint64(0), ParseOnt("0"))

Callers

nothing calls this directly

Calls 1

FormatOntFunction · 0.85

Tested by

no test coverage detected