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

Function DebugAST

tools/celtest/test_runner.go:340–346  ·  view source on GitHub ↗

DebugAST returns a string representation of the AST adorned with type information.

(ast *cel.Ast)

Source from the content-addressed store, hash-verified

338
339// DebugAST returns a string representation of the AST adorned with type information.
340func DebugAST(ast *cel.Ast) string {
341 if ast == nil {
342 return "<nil>"
343 }
344 adorner := &typeAdorner{ast: ast}
345 return debug.ToAdornedDebugString(ast.NativeRep().Expr(), adorner)
346}
347
348// TestRunner provides a structure to hold the different components required to execute tests for
349// a list of Input Expressions. The TestRunner can be configured with the following options:

Callers 1

ProgramsMethod · 0.85

Calls 3

ToAdornedDebugStringFunction · 0.92
NativeRepMethod · 0.80
ExprMethod · 0.65

Tested by

no test coverage detected