Refactored match to use function chaining
This commit is contained in:
@@ -18,7 +18,7 @@ func assertQuery(t *testing.T, toml, query string, ref []interface{}) {
|
||||
return
|
||||
}
|
||||
path := parse(flow)
|
||||
result := processPath(path, tree)
|
||||
result := path.Call(tree)
|
||||
assertValue(t, result, ref, "((" + query + ")) -> ")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user