DebugAST returns a string representation of the AST adorned with type information.
(ast *cel.Ast)
| 338 | |
| 339 | // DebugAST returns a string representation of the AST adorned with type information. |
| 340 | func 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: |
no test coverage detected