MCPcopy Create free account
hub / github.com/jmespath/go-jmespath / TestCanSupportUserDefinedStructsRef

Function TestCanSupportUserDefinedStructsRef

interpreter_test.go:62–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func TestCanSupportUserDefinedStructsRef(t *testing.T) {
63 assert := assert.New(t)
64 s := scalars{Foo: "one", Bar: "bar"}
65 result, err := Search("Foo", &s)
66 assert.Nil(err)
67 assert.Equal("one", result)
68}
69
70func TestCanSupportStructWithSliceAll(t *testing.T) {
71 assert := assert.New(t)

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
NilFunction · 0.92
EqualFunction · 0.92
SearchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…