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

Method evalBool

util/jsonpath/jsonpath.go:189–195  ·  view source on GitHub ↗

evalBool evaluates BoolNode

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

Source from the content-addressed store, hash-verified

187
188// evalBool evaluates BoolNode
189func (j *JSONPath) evalBool(input []reflect.Value, node *BoolNode) ([]reflect.Value, error) {
190 result := make([]reflect.Value, len(input))
191 for i := range input {
192 result[i] = reflect.ValueOf(node.Value)
193 }
194 return result, nil
195}
196
197// evalList evaluates ListNode
198func (j *JSONPath) evalList(value []reflect.Value, node *ListNode) ([]reflect.Value, error) {

Callers 1

walkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected