(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestSimpleNull(t *testing.T) { |
| 26 | ast := &ast.LiteralNull{} |
| 27 | err := analyze(ast) |
| 28 | if err != nil { |
| 29 | t.Errorf("Unexpected error: %+v", err) |
| 30 | } |
| 31 | if len(ast.FreeVariables()) != 0 { |
| 32 | t.Errorf("Unexpected free variabled %+v", ast.FreeVariables()) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func hasTheseFreeVars(returned ast.Identifiers, expected ast.Identifiers) bool { |
| 37 | if len(returned) != len(expected) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…