diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-09-06 16:12:53 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-09-06 16:14:22 +0800 |
commit | 564c8f3ae6f80d039ef27479e5ad15145f488710 (patch) | |
tree | 6ea0ba7265588c7979ff6a76c107b607306c5e01 /core/bloombits/matcher_test.go | |
parent | 451ffdb62b43bab66188f3f7eeb2131b65415ccb (diff) | |
download | dexon-564c8f3ae6f80d039ef27479e5ad15145f488710.tar dexon-564c8f3ae6f80d039ef27479e5ad15145f488710.tar.gz dexon-564c8f3ae6f80d039ef27479e5ad15145f488710.tar.bz2 dexon-564c8f3ae6f80d039ef27479e5ad15145f488710.tar.lz dexon-564c8f3ae6f80d039ef27479e5ad15145f488710.tar.xz dexon-564c8f3ae6f80d039ef27479e5ad15145f488710.tar.zst dexon-564c8f3ae6f80d039ef27479e5ad15145f488710.zip |
core/bloombits: drop nil-matcher special case
Diffstat (limited to 'core/bloombits/matcher_test.go')
-rw-r--r-- | core/bloombits/matcher_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/bloombits/matcher_test.go b/core/bloombits/matcher_test.go index 177e1b792..f0198c4e3 100644 --- a/core/bloombits/matcher_test.go +++ b/core/bloombits/matcher_test.go @@ -51,6 +51,11 @@ func TestMatcherRandom(t *testing.T) { } } +// Tests that matching on everything doesn't crash (special case internally). +func TestWildcardMatcher(t *testing.T) { + testMatcherBothModes(t, nil, 10000, 0) +} + // makeRandomIndexes generates a random filter system, composed on multiple filter // criteria, each having one bloom list component for the address and arbitrarilly // many topic bloom list components. |