From bfe61b12974d8de598444bd6abe3f902ac9f8ae8 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 18 Mar 2014 13:47:02 -0700 Subject: [PATCH] storagetest: add a test of EnumerateBlobs w/ prefix of a blobref Change-Id: Id865da5ba6c65e0110b0eb6c6d0bd45980d33105 --- pkg/blobserver/storagetest/storagetest.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/blobserver/storagetest/storagetest.go b/pkg/blobserver/storagetest/storagetest.go index cf50d839c..3e682f470 100644 --- a/pkg/blobserver/storagetest/storagetest.go +++ b/pkg/blobserver/storagetest/storagetest.go @@ -126,6 +126,13 @@ func Test(t *testing.T, fn func(*testing.T) (sto blobserver.Storage, cleanup fun testEnumerate(t, sto, blobSizedRefs[3:4], after, 1) } + // Enumerate 'after' with prefix of a blobref + limit + { + after := "a" + t.Logf("Testing Enumerate 'after' + 'limit' param; after %q, limit 1", after) + testEnumerate(t, sto, blobSizedRefs[:1], after, 1) + } + t.Logf("Testing Remove") if err := sto.RemoveBlobs(blobRefs); err != nil { if strings.Contains(err.Error(), "not implemented") {