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

Function TestStringSliceTypeFloat

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

Source from the content-addressed store, hash-verified

123}
124
125func TestStringSliceTypeFloat(t *testing.T) {
126 m := objx.Map{
127 "float32": []float32{32.32, 33.33},
128 "float64": []float64{64.64, 65.65},
129 }
130
131 assert.Equal(t, []string{"32.32", "33.33"}, m.Get("float32").StringSlice())
132 assert.Equal(t, []string{"64.64", "65.65"}, m.Get("float64").StringSlice())
133}
134
135func TestStringSliceTypeOther(t *testing.T) {
136 m := objx.Map{

Callers

nothing calls this directly

Calls 3

GetMethod · 0.95
StringSliceMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…