MCPcopy
hub / github.com/kubernetes/client-go / evalUnion

Method evalUnion

util/jsonpath/jsonpath.go:293–303  ·  view source on GitHub ↗

evalUnion evaluates UnionNode

(input []reflect.Value, node *UnionNode)

Source from the content-addressed store, hash-verified

291
292// evalUnion evaluates UnionNode
293func (j *JSONPath) evalUnion(input []reflect.Value, node *UnionNode) ([]reflect.Value, error) {
294 result := []reflect.Value{}
295 for _, listNode := range node.Nodes {
296 temp, err := j.evalList(input, listNode)
297 if err != nil {
298 return input, err
299 }
300 result = append(result, temp...)
301 }
302 return result, nil
303}
304
305func (j *JSONPath) findFieldInValue(value *reflect.Value, node *FieldNode) (reflect.Value, error) {
306 t := value.Type()

Callers 1

walkMethod · 0.95

Calls 1

evalListMethod · 0.95

Tested by

no test coverage detected