diff options
author | ferhat elmas <elmas.ferhat@gmail.com> | 2017-11-08 18:45:52 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-11-08 18:45:52 +0800 |
commit | 9619a610248e9630968ba1d9be8e214b645c9c55 (patch) | |
tree | 5844cfbee9a0ac5750dcc803cea461f75969f74e /core/bloombits/matcher_test.go | |
parent | bfdc0fa3622d7c3b421d2f5a6dda5746be41bfde (diff) | |
download | go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.gz go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.bz2 go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.lz go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.xz go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.tar.zst go-tangerine-9619a610248e9630968ba1d9be8e214b645c9c55.zip |
all: gofmt -w -s (#15419)
Diffstat (limited to 'core/bloombits/matcher_test.go')
-rw-r--r-- | core/bloombits/matcher_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/bloombits/matcher_test.go b/core/bloombits/matcher_test.go index 0d8544136..4a31854c5 100644 --- a/core/bloombits/matcher_test.go +++ b/core/bloombits/matcher_test.go @@ -31,14 +31,14 @@ const testSectionSize = 4096 // Tests that wildcard filter rules (nil) can be specified and are handled well. func TestMatcherWildcards(t *testing.T) { matcher := NewMatcher(testSectionSize, [][][]byte{ - [][]byte{common.Address{}.Bytes(), common.Address{0x01}.Bytes()}, // Default address is not a wildcard - [][]byte{common.Hash{}.Bytes(), common.Hash{0x01}.Bytes()}, // Default hash is not a wildcard - [][]byte{common.Hash{0x01}.Bytes()}, // Plain rule, sanity check - [][]byte{common.Hash{0x01}.Bytes(), nil}, // Wildcard suffix, drop rule - [][]byte{nil, common.Hash{0x01}.Bytes()}, // Wildcard prefix, drop rule - [][]byte{nil, nil}, // Wildcard combo, drop rule - [][]byte{}, // Inited wildcard rule, drop rule - nil, // Proper wildcard rule, drop rule + {common.Address{}.Bytes(), common.Address{0x01}.Bytes()}, // Default address is not a wildcard + {common.Hash{}.Bytes(), common.Hash{0x01}.Bytes()}, // Default hash is not a wildcard + {common.Hash{0x01}.Bytes()}, // Plain rule, sanity check + {common.Hash{0x01}.Bytes(), nil}, // Wildcard suffix, drop rule + {nil, common.Hash{0x01}.Bytes()}, // Wildcard prefix, drop rule + {nil, nil}, // Wildcard combo, drop rule + {}, // Inited wildcard rule, drop rule + nil, // Proper wildcard rule, drop rule }) if len(matcher.filters) != 3 { t.Fatalf("filter system size mismatch: have %d, want %d", len(matcher.filters), 3) |