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

Function NewLimit

common/env/env.go:762–764  ·  view source on GitHub ↗

NewLimit creates a new limit.

(name string, value int)

Source from the content-addressed store, hash-verified

760
761// NewLimit creates a new limit.
762func NewLimit(name string, value int) *Limit {
763 return &Limit{name, value}
764}
765
766// Validate validates a limit.
767func (l *Limit) Validate() error {

Callers 3

ToConfigMethod · 0.92
TestEnvFromConfigFunction · 0.92
TestConfigFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestEnvFromConfigFunction · 0.74
TestConfigFunction · 0.68