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

Method Info

test/expr.go:33–37  ·  view source on GitHub ↗

Info returns a copy of the SourceInfo with the given location.

(location string)

Source from the content-addressed store, hash-verified

31
32// Info returns a copy of the SourceInfo with the given location.
33func (t *TestExpr) Info(location string) *exprpb.SourceInfo {
34 info := proto.Clone(t.SourceInfo).(*exprpb.SourceInfo)
35 info.Location = location
36 return info
37}
38
39var (
40 // Empty generates a program with no instructions.

Callers

nothing calls this directly

Calls 1

CloneMethod · 0.80

Tested by

no test coverage detected