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

Method IsInteger

policy/yaml.go:82–84  ·  view source on GitHub ↗

IsInteger returns true if the YAML node is an integer.

(node *yaml.Node)

Source from the content-addressed store, hash-verified

80
81// IsInteger returns true if the YAML node is an integer.
82func (YAMLHelper) IsInteger(node *yaml.Node) bool {
83 return isTypeTag(node, yamlInt)
84}
85
86// IsDouble returns true if the YAML node is a double.
87func (YAMLHelper) IsDouble(node *yaml.Node) bool {

Callers 1

TestYAMLHelperFunction · 0.95

Calls 1

isTypeTagFunction · 0.85

Tested by 1

TestYAMLHelperFunction · 0.76