MCPcopy Create free account
hub / github.com/stretchr/objx / TestStringTypeUint

Function TestStringTypeUint

value_test.go:41–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39}
40
41func TestStringTypeUint(t *testing.T) {
42 m := objx.Map{
43 "uint": uint(1),
44 "uint8": uint8(8),
45 "uint16": uint16(16),
46 "uint32": uint32(32),
47 "uint64": uint64(64),
48 }
49
50 assert.Equal(t, "1", m.Get("uint").String())
51 assert.Equal(t, "8", m.Get("uint8").String())
52 assert.Equal(t, "16", m.Get("uint16").String())
53 assert.Equal(t, "32", m.Get("uint32").String())
54 assert.Equal(t, "64", m.Get("uint64").String())
55}
56
57func TestStringTypeFloat(t *testing.T) {
58 m := objx.Map{

Callers

nothing calls this directly

Calls 3

GetMethod · 0.95
StringMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…