(t *testing.T)
| 1314 | } |
| 1315 | |
| 1316 | func 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 | |
| 1323 | func TestNilFunction(t *testing.T) { |
| 1324 | var f *FunctionDecl |
nothing calls this directly
no test coverage detected