From 46081e2068aeea62783863515ab116bb6af20661 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 19 Feb 2018 19:19:53 +0100 Subject: test coverage for object upload, download, metadata update --- object_iterator_test.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'object_iterator_test.go') diff --git a/object_iterator_test.go b/object_iterator_test.go index 64cb6a2..92fe4b1 100644 --- a/object_iterator_test.go +++ b/object_iterator_test.go @@ -20,8 +20,6 @@ package schwift import ( "bytes" - "crypto/md5" - "encoding/hex" "fmt" "testing" ) @@ -29,11 +27,6 @@ import ( var objectExampleContent = []byte(`{"message":"Hello World!"}`) var objectExampleContentEtag = etagOf(objectExampleContent) -func etagOf(buf []byte) string { - hash := md5.Sum(buf) - return hex.EncodeToString(hash[:]) -} - func TestObjectIterator(t *testing.T) { testWithContainer(t, func(c *Container) { oname := func(idx int) string { -- cgit v1.2.3