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

Function TestStringTypeInt

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

Source from the content-addressed store, hash-verified

23}
24
25func TestStringTypeInt(t *testing.T) {
26 m := objx.Map{
27 "int": int(1),
28 "int8": int8(8),
29 "int16": int16(16),
30 "int32": int32(32),
31 "int64": int64(64),
32 }
33
34 assert.Equal(t, "1", m.Get("int").String())
35 assert.Equal(t, "8", m.Get("int8").String())
36 assert.Equal(t, "16", m.Get("int16").String())
37 assert.Equal(t, "32", m.Get("int32").String())
38 assert.Equal(t, "64", m.Get("int64").String())
39}
40
41func TestStringTypeUint(t *testing.T) {
42 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…