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

Function TestNewContextVariable

common/env/env_test.go:548–553  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

546}
547
548func TestNewContextVariable(t *testing.T) {
549 ctx := NewContextVariable("qualified.type.name")
550 if ctx.TypeName != "qualified.type.name" {
551 t.Errorf("NewContextVariable() got name: %s, wanted %s", ctx.TypeName, "qualified.type.name")
552 }
553}
554
555func TestContextVariableValidate(t *testing.T) {
556 ctx := NewContextVariable("")

Callers

nothing calls this directly

Calls 1

NewContextVariableFunction · 0.85

Tested by

no test coverage detected