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

Function TestVariableDeclToExprDeclInvalid

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

VariableDeclToExprDeclFunction · 0.85
NewVariableFunction · 0.70

Tested by

no test coverage detected