Change tests to use gcs.Filter instead of custom interface

This commit is contained in:
Alex 2017-01-17 16:49:31 -07:00 committed by Olaoluwa Osuntokun
parent b21739c0e2
commit 53c8e22157

View file

@ -23,13 +23,7 @@ var (
// Filters are conserved between tests but we must define with an
// interface which functions we're testing because the gcsFilter
// type isn't exported
filter, filter2 interface {
Match([gcs.KeySize]byte, []byte) (bool, error)
MatchAny([gcs.KeySize]byte, [][]byte) (bool, error)
N() uint32
P() uint8
Bytes() []byte
}
filter, filter2 *gcs.Filter
// We need to use the same key for building and querying the filters
key [gcs.KeySize]byte