Add static type assertions
Assert that various iterators satisfy the graph.Nexter interface
This commit is contained in:
parent
84718983a5
commit
6aad2b1818
18 changed files with 37 additions and 0 deletions
|
|
@ -214,3 +214,5 @@ func (it *LinksTo) Stats() graph.IteratorStats {
|
|||
func (it *LinksTo) Size() (int64, bool) {
|
||||
return it.Stats().Size, false
|
||||
}
|
||||
|
||||
var _ graph.Nexter = &LinksTo{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue