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 // 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