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

Function TestStringTypeFloat

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

Source from the content-addressed store, hash-verified

55}
56
57func TestStringTypeFloat(t *testing.T) {
58 m := objx.Map{
59 "float32": float32(32.32),
60 "float64": float64(64.64),
61 }
62
63 assert.Equal(t, "32.32", m.Get("float32").String())
64 assert.Equal(t, "64.64", m.Get("float64").String())
65}
66
67func TestStringTypeOther(t *testing.T) {
68 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…