diff options
Diffstat (limited to 'objects/object_file_test.go')
-rw-r--r-- | objects/object_file_test.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/objects/object_file_test.go b/objects/object_file_test.go index f1cb584..f0d45c3 100644 --- a/objects/object_file_test.go +++ b/objects/object_file_test.go @@ -22,16 +22,6 @@ var ( "blob=sha3-256:5555555555555555555555555555555555555555555555555555555555555555&size=50\n") ) -func genId(b byte) (oid ObjectId) { - oid.Algo = OIdAlgoSHA3_256 - oid.Sum = make([]byte, OIdAlgoSHA3_256.sumLength()) - for i := 0; i < OIdAlgoSHA3_256.sumLength(); i++ { - oid.Sum[i] = b - } - - return -} - func TestSerializeFile(t *testing.T) { have := testFileObj.Payload() @@ -77,7 +67,7 @@ func TestUnserializeEmptyFile(t *testing.T) { } } -func TestUnserializeFailure(t *testing.T) { +func TestUnserializeFileFailure(t *testing.T) { subtests := []struct{ name, payload string }{ {"missing blob", "size=100\n"}, {"empty blob", "blob=&size=100"}, |