Change tests to use gcs.Filter instead of custom interface
This commit is contained in:
parent
b21739c0e2
commit
53c8e22157
1 changed files with 1 additions and 7 deletions
|
@ -23,13 +23,7 @@ var (
|
||||||
// Filters are conserved between tests but we must define with an
|
// Filters are conserved between tests but we must define with an
|
||||||
// interface which functions we're testing because the gcsFilter
|
// interface which functions we're testing because the gcsFilter
|
||||||
// type isn't exported
|
// type isn't exported
|
||||||
filter, filter2 interface {
|
filter, filter2 *gcs.Filter
|
||||||
Match([gcs.KeySize]byte, []byte) (bool, error)
|
|
||||||
MatchAny([gcs.KeySize]byte, [][]byte) (bool, error)
|
|
||||||
N() uint32
|
|
||||||
P() uint8
|
|
||||||
Bytes() []byte
|
|
||||||
}
|
|
||||||
|
|
||||||
// We need to use the same key for building and querying the filters
|
// We need to use the same key for building and querying the filters
|
||||||
key [gcs.KeySize]byte
|
key [gcs.KeySize]byte
|
||||||
|
|
Loading…
Reference in a new issue