From 374bc06d76f21fcde3700508325af43cbbde0365 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Thu, 7 Dec 2017 11:39:17 -0800 Subject: [PATCH] Remove unnecessary getHashString function The getHashString function is not necessary with the hash.String() function implementation. Signed-off-by: Matthew Johnson --- src/swupd/files_test.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/swupd/files_test.go b/src/swupd/files_test.go index 9977352..8d3aa44 100644 --- a/src/swupd/files_test.go +++ b/src/swupd/files_test.go @@ -220,20 +220,6 @@ func TestSetHashInvalid(t *testing.T) { } } -func TestGetHashString(t *testing.T) { - // reset Hashes so we get the expected indices - f := File{} - validHash := "9bcc1718757db298fb656ae6e2ee143dde746f49fbf6805db7683cb574c36729" - if err := f.setHash(validHash); err != nil { - t.Fatal("setHash failed on valid hash") - } - - hash := f.getHashString() - if hash != validHash { - t.Errorf("hash %v did not match expected %v", hash, validHash) - } -} - func TestGetFlagString(t *testing.T) { f := File{} var err error