NewTest creates a new Test with the provided name, input and result matcher.
(name string, input cel.PartialActivation, resultMatcher func(ref.Val, error) TestResult)
| 384 | |
| 385 | // NewTest creates a new Test with the provided name, input and result matcher. |
| 386 | func NewTest(name string, input cel.PartialActivation, resultMatcher func(ref.Val, error) TestResult) *Test { |
| 387 | return &Test{ |
| 388 | name: name, |
| 389 | input: input, |
| 390 | resultMatcher: resultMatcher, |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | // Name returns the name of the test case. |
| 395 | func (t *Test) Name() string { |
no outgoing calls
no test coverage detected