From 53c8e22157fe13381837969d4aedf1d6b9c02b1e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 17 Jan 2017 16:49:31 -0700 Subject: [PATCH] Change tests to use gcs.Filter instead of custom interface --- gcs/gcs_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gcs/gcs_test.go b/gcs/gcs_test.go index f4cbb29..56d8568 100644 --- a/gcs/gcs_test.go +++ b/gcs/gcs_test.go @@ -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