Test for errors in .Contains() and .NextPath()
This commit is contained in:
parent
7de923d40a
commit
430ff507f0
8 changed files with 71 additions and 11 deletions
|
|
@ -230,6 +230,9 @@ func (it *Materialize) Contains(v graph.Value) bool {
|
|||
if !it.hasRun {
|
||||
it.materializeSet()
|
||||
}
|
||||
if it.err != nil {
|
||||
return false
|
||||
}
|
||||
if it.aborted {
|
||||
return it.subIt.Contains(v)
|
||||
}
|
||||
|
|
@ -249,6 +252,9 @@ func (it *Materialize) NextPath() bool {
|
|||
if !it.hasRun {
|
||||
it.materializeSet()
|
||||
}
|
||||
if it.err != nil {
|
||||
return false
|
||||
}
|
||||
if it.aborted {
|
||||
return it.subIt.NextPath()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue