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

Function TestConstantToValError

common/ast/conversion_test.go:723–728  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

721}
722
723func TestConstantToValError(t *testing.T) {
724 out, err := ast.ConstantToVal(&exprpb.Constant{})
725 if err == nil {
726 t.Errorf("ConstantToVal() got %v, wanted error", out)
727 }
728}
729
730func sourceWithExtension(info *ast.SourceInfo, ext ast.Extension) *ast.SourceInfo {
731 info.AddExtension(ext)

Callers

nothing calls this directly

Calls 1

ConstantToValFunction · 0.92

Tested by

no test coverage detected