TestCustomTestSuiteParser triggers the test runner where the tests are provided by a custom test suite parser configured using TestSuiteParserOption.
(t *testing.T)
| 211 | // TestCustomTestSuiteParser triggers the test runner where the tests are provided by a custom |
| 212 | // test suite parser configured using TestSuiteParserOption. |
| 213 | func TestCustomTestSuiteParser(t *testing.T) { |
| 214 | t.Run("test custom test suite parser", func(t *testing.T) { |
| 215 | celExpr := "a || i + fn(j) == 42" |
| 216 | compilerOpts := []any{compiler.EnvironmentFile("testdata/config.yaml"), fnEnvOption()} |
| 217 | testRunnerOpts := []TestRunnerOption{ |
| 218 | TestCompiler(compilerOpts...), |
| 219 | TestExpression(celExpr), |
| 220 | TestSuiteParserOption(&tsparser{}), |
| 221 | } |
| 222 | TriggerTests(t, testRunnerOpts...) |
| 223 | }) |
| 224 | } |
| 225 | |
| 226 | type tsparser struct { |
| 227 | TestSuiteParser |
nothing calls this directly
no test coverage detected