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

Function NewTest

tools/celtest/test_runner.go:386–392  ·  view source on GitHub ↗

NewTest creates a new Test with the provided name, input and result matcher.

(name string, input cel.PartialActivation, resultMatcher func(ref.Val, error) TestResult)

Source from the content-addressed store, hash-verified

384
385// NewTest creates a new Test with the provided name, input and result matcher.
386func 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.
395func (t *Test) Name() string {

Callers 2

createTestsFromYAMLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected