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
|
|
@ -113,6 +113,13 @@ func (it *Not) Contains(val graph.Value) bool {
|
|||
return graph.ContainsLogOut(it, val, false)
|
||||
}
|
||||
|
||||
if err := it.primaryIt.Err(); err != nil {
|
||||
it.err = err
|
||||
|
||||
// Explicitly return 'false', since an error occurred.
|
||||
return false
|
||||
}
|
||||
|
||||
it.result = val
|
||||
return graph.ContainsLogOut(it, val, true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue