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

Function TestTransform

mutations_test.go:72–82  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestTransform(t *testing.T) {
73 m := objx.Map{
74 "name": "Mat",
75 "location": "UK",
76 }
77 r := m.Transform(keyToUpper)
78 assert.Equal(t, objx.Map{
79 "NAME": "Mat",
80 "LOCATION": "UK",
81 }, r)
82}
83
84func TestTransformKeys(t *testing.T) {
85 m := objx.Map{

Callers

nothing calls this directly

Calls 2

TransformMethod · 0.95
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…