Skip to content

Commit

Permalink
Merge pull request #18 from adrianchiris/add-filterset-tests
Browse files Browse the repository at this point in the history
Add filterset tests
  • Loading branch information
ykulazhenkov authored Aug 2, 2022
2 parents 87d5120 + 486efeb commit 1e35932
Show file tree
Hide file tree
Showing 3 changed files with 527 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/tc/filterset.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ func (f *FilterSetImpl) Len() int {

// In implements FilterSet
func (f *FilterSetImpl) In(other FilterSet) bool {
if f.Len() > other.Len() {
return false
}

for _, fl := range f.items {
if !other.Has(fl) {
return false
Expand Down
Loading

0 comments on commit 1e35932

Please sign in to comment.