Versions in this module Expand all Collapse all v0 v0.32.0 Aug 19, 2026 Changes in this version + func DebugAST(ast *cel.Ast) string + func TriggerTests(t *testing.T, testRunnerOpts ...TestRunnerOption) + func UpdateTestResourcesPaths(testResourcesDir string, paths []*string) error + type ActivationFactory func(vars any) (cel.Activation, error) + type Program struct + Ast *cel.Ast + CoverageStats map[int64]set + PolicyMetadata map[string]any + type Test struct + func NewTest(name string, input cel.PartialActivation, ...) *Test + func (t *Test) Name() string + func (t *Test) ResultMatcher() func(ref.Val, error) TestResult + type TestResult struct + Error error + Success bool + Wanted string + type TestRunner struct + EnableCoverage bool + Expressions []compiler.InputExpression + FileDescriptorSet *descpb.FileDescriptorSet + TestSuiteFilePath string + func NewTestRunner(opts ...TestRunnerOption) (*TestRunner, error) + func (tr *TestRunner) ExecuteTest(t *testing.T, programs []Program, test *Test) error + func (tr *TestRunner) Programs(t *testing.T, opts ...cel.ProgramOption) ([]Program, error) + func (tr *TestRunner) Tests(t *testing.T) ([]*Test, error) + type TestRunnerOption func(*TestRunner) (*TestRunner, error) + func AddFileDescriptorSetProto(fds *descpb.FileDescriptorSet) TestRunnerOption + func CustomTestCompiler(c compiler.Compiler) TestRunnerOption + func DefaultTestSuiteParser(path string) TestRunnerOption + func EnableCoverage() TestRunnerOption + func FileDescriptorSet(path string) TestRunnerOption + func PartialEvalProgramOption() TestRunnerOption + func TestCompiler(compileOpts ...any) TestRunnerOption + func TestExpression(value string) TestRunnerOption + func TestInputActivationFactory(f ActivationFactory) TestRunnerOption + func TestRunnerOptionsFromFlags(testResourcesDir string, testRunnerOpts []TestRunnerOption, ...) TestRunnerOption + func TestSuite(path string) TestRunnerOption + func TestSuiteParserOption(p TestSuiteParser) TestRunnerOption + type TestSuiteParser interface + ParseTextproto func(string) (*conformancepb.TestSuite, error) + ParseYAML func(string) (*test.Suite, error)