MCPcopy Create free account
hub / github.com/cel-expr/cel-go / IsList

Method IsList

policy/yaml.go:25–27  ·  view source on GitHub ↗

IsList returns true if the YAML node is a list.

(node *yaml.Node)

Source from the content-addressed store, hash-verified

23
24// IsList returns true if the YAML node is a list.
25func (YAMLHelper) IsList(node *yaml.Node) bool {
26 return isTypeTag(node, yamlList)
27}
28
29// RangeList iterates over the list and calls the provided function for each element. If the
30// function returns false, the iteration will stop.

Callers 2

TestYAMLHelperFunction · 0.95
RangeListMethod · 0.95

Calls 1

isTypeTagFunction · 0.85

Tested by 1

TestYAMLHelperFunction · 0.76