test/unittest_rqlrewrite.py
branchstable
changeset 9188 0677e03077fb
parent 9170 e6fe77dbcfdf
child 9189 9448215c73c4
equal deleted inserted replaced
9187:8406bef5d5f2 9188:0677e03077fb
    71                                     expression='Any X WHERE '+snippet)
    71                                     expression='Any X WHERE '+snippet)
    72                     or snippet
    72                     or snippet
    73                     for snippet in exprs]
    73                     for snippet in exprs]
    74         snippets.append((dict([v]), rqlexprs))
    74         snippets.append((dict([v]), rqlexprs))
    75     rqlhelper.compute_solutions(rqlst.children[0], {'eid': eid_func_map}, kwargs=kwargs)
    75     rqlhelper.compute_solutions(rqlst.children[0], {'eid': eid_func_map}, kwargs=kwargs)
    76     solutions = rqlst.children[0].solutions
    76     rewriter.rewrite(rqlst.children[0], snippets, kwargs, existingvars)
    77     rewriter.rewrite(rqlst.children[0], snippets, solutions, kwargs,
       
    78                      existingvars)
       
    79     test_vrefs(rqlst.children[0])
    77     test_vrefs(rqlst.children[0])
    80     return rewriter.rewritten
    78     return rewriter.rewritten
    81 
    79 
    82 def test_vrefs(node):
    80 def test_vrefs(node):
    83     vrefmaps = {}
    81     vrefmaps = {}