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

Method evalInt

util/jsonpath/jsonpath.go:171–177  ·  view source on GitHub ↗

evalInt evaluates IntNode

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

Source from the content-addressed store, hash-verified

169
170// evalInt evaluates IntNode
171func (j *JSONPath) evalInt(input []reflect.Value, node *IntNode) ([]reflect.Value, error) {
172 result := make([]reflect.Value, len(input))
173 for i := range input {
174 result[i] = reflect.ValueOf(node.Value)
175 }
176 return result, nil
177}
178
179// evalFloat evaluates FloatNode
180func (j *JSONPath) evalFloat(input []reflect.Value, node *FloatNode) ([]reflect.Value, error) {

Callers 1

walkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected