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

Method AddExcludedMacros

common/env/env.go:673–676  ·  view source on GitHub ↗

AddExcludedMacros deny-lists one or more macros by function name.

(macros ...string)

Source from the content-addressed store, hash-verified

671
672// AddExcludedMacros deny-lists one or more macros by function name.
673func (lib *LibrarySubset) AddExcludedMacros(macros ...string) *LibrarySubset {
674 lib.ExcludeMacros = append(lib.ExcludeMacros, macros...)
675 return lib
676}
677
678// AddIncludedFunctions allow-lists one or more functions from the subset.
679//

Callers 6

envToStdLibFunction · 0.95
TestSubsetStdLibErrorFunction · 0.80
TestConfigFunction · 0.80
TestConfigValidateErrorsFunction · 0.80
TestSubsetMacroFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestSubsetStdLibErrorFunction · 0.64
TestConfigFunction · 0.64
TestConfigValidateErrorsFunction · 0.64
TestSubsetMacroFunction · 0.64