MCPcopy Create free account
hub / github.com/PaesslerAG/jsonpath / visitMatchs

Method visitMatchs

path.go:74–78  ·  view source on GitHub ↗
(ctx context.Context, r interface{}, visit pathMatcher)

Source from the content-addressed store, hash-verified

72}
73
74func (p *ambiguousPath) visitMatchs(ctx context.Context, r interface{}, visit pathMatcher) {
75 p.parent.visitMatchs(ctx, r, func(keys []interface{}, v interface{}) {
76 p.branch(ctx, r, v, p.ending.matcher(ctx, r, visit.matcher(keys)))
77 })
78}
79
80func (p *ambiguousPath) branchMatcher(ctx context.Context, r interface{}, m ambiguousMatcher) ambiguousMatcher {
81 return func(k, v interface{}) {

Callers 1

evaluateMethod · 0.95

Calls 2

visitMatchsMethod · 0.65
matcherMethod · 0.45

Tested by

no test coverage detected