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

Method State

cel/program.go:148–153  ·  view source on GitHub ↗

State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.

()

Source from the content-addressed store, hash-verified

146// State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified
147// within EvalOptions.
148func (ed *EvalDetails) State() interpreter.EvalState {
149 if ed == nil {
150 return interpreter.NewEvalState()
151 }
152 return ed.state
153}
154
155// ActualCost returns the tracked cost through the course of execution when `CostTracking` is enabled.
156// Otherwise, returns nil if the cost was not enabled.

Callers 6

collectCoverageStatsFunction · 0.80
ResidualAstMethod · 0.80
TestConcurrentEvalFunction · 0.80
TestExhaustiveEvalFunction · 0.80
reportFunction · 0.80
reportFunction · 0.80

Calls 1

NewEvalStateFunction · 0.92

Tested by 2

TestConcurrentEvalFunction · 0.64
TestExhaustiveEvalFunction · 0.64