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

Function TestVariableDeclToExprDeclInvalid

common/decls/decls_test.go:1317–1322  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1315}
1316
1317func TestVariableDeclToExprDeclInvalid(t *testing.T) {
1318 out, err := VariableDeclToExprDecl(NewVariable("bad", &types.Type{}))
1319 if err == nil {
1320 t.Fatalf("VariableDeclToExprDecl() succeeded: %v, wanted error", out)
1321 }
1322}
1323
1324func TestNilFunction(t *testing.T) {
1325 var f *FunctionDecl

Callers

nothing calls this directly

Calls 2

VariableDeclToExprDeclFunction · 0.85
NewVariableFunction · 0.70

Tested by

no test coverage detected