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

Function DefaultTestSuiteParser

tools/celtest/test_runner.go:302–311  ·  view source on GitHub ↗

DefaultTestSuiteParser returns a TestRunnerOption which configures the test runner with the default test suite parser. Deprecated: prefer TestSuite(path)

(path string)

Source from the content-addressed store, hash-verified

300// the default test suite parser.
301// Deprecated: prefer TestSuite(path)
302func DefaultTestSuiteParser(path string) TestRunnerOption {
303 return func(tr *TestRunner) (*TestRunner, error) {
304 if path == "" {
305 return tr, nil
306 }
307 tr.TestSuiteFilePath = path
308 tr.testSuiteParser = &tsParser{}
309 return tr, nil
310 }
311}
312
313// TestSuiteParserOption returns a TestRunnerOption which configures the test runner with
314// a custom test suite parser.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected