Run go vet
Bugs found.
This commit is contained in:
parent
8118c8d3cc
commit
bf6412b55d
12 changed files with 28 additions and 14 deletions
|
|
@ -89,7 +89,7 @@ func TestTreeConstraintParse(t *testing.T) {
|
|||
"($a (:is :good))))"
|
||||
it := BuildIteratorTreeForQuery(qs, query)
|
||||
if it.Type() != graph.And {
|
||||
t.Error("Odd iterator tree. Got: %s", it.DebugString(0))
|
||||
t.Errorf("Odd iterator tree. Got: %s", it.DebugString(0))
|
||||
}
|
||||
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.Error("Odd iterator tree. Got: %s", it.DebugString(0))
|
||||
t.Errorf("Odd iterator tree. Got: %s", it.DebugString(0))
|
||||
}
|
||||
if !graph.Next(it) {
|
||||
t.Error("Got no results")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue