From 564c8f3ae6f80d039ef27479e5ad15145f488710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Wed, 6 Sep 2017 11:12:53 +0300 Subject: core/bloombits: drop nil-matcher special case --- core/bloombits/matcher_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/bloombits/matcher_test.go') 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. -- cgit v1.2.3