Replace DebugString with Describe
This change makes tree description completely open to mechanical analysis and ensures consistency between description formats for each of the iterator types. Renamed StatsContainer.(Kind -> Type) for consistency.
This commit is contained in:
parent
b5f113203d
commit
62013d3dfc
22 changed files with 186 additions and 162 deletions
|
|
@ -89,7 +89,7 @@ func TestTreeConstraintParse(t *testing.T) {
|
|||
"($a (:is :good))))"
|
||||
it := BuildIteratorTreeForQuery(qs, query)
|
||||
if it.Type() != graph.And {
|
||||
t.Errorf("Odd iterator tree. Got: %s", it.DebugString(0))
|
||||
t.Errorf("Odd iterator tree. Got: %#v", it.Describe())
|
||||
}
|
||||
if !graph.Next(it) {
|
||||
t.Error("Got no results")
|
||||
|
|
@ -137,7 +137,7 @@ func TestMultipleConstraintParse(t *testing.T) {
|
|||
)`
|
||||
it := BuildIteratorTreeForQuery(qs, query)
|
||||
if it.Type() != graph.And {
|
||||
t.Errorf("Odd iterator tree. Got: %s", it.DebugString(0))
|
||||
t.Errorf("Odd iterator tree. Got: %#v", it.Describe())
|
||||
}
|
||||
if !graph.Next(it) {
|
||||
t.Error("Got no results")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue