Real-world RQL use involves unmarshaling the AST from JSON then calling
the appropriate Eval methods. The values passed into value predicates
are also unmarshaled JSON values. The unit tests should simulate these
real-world scenarios. Thus, this commit modifies the helpers in
asttest.Suite to ensure that JSON unmarshaled Go types are passed as
input both for the ast and for value predicates.
Real-world RQL use involves unmarshaling the AST from JSON then calling the appropriate Eval methods. The values passed into value predicates are also unmarshaled JSON values. The unit tests should simulate these real-world scenarios. Thus, this commit modifies the helpers in asttest.Suite to ensure that JSON unmarshaled Go types are passed as input both for the ast and for value predicates.
Signed-off-by: Enis Inan enis.inan@puppet.com