Remove unnecessary getHashString function

The getHashString function is not necessary with the hash.String()
function implementation.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
This commit is contained in:
Matthew Johnson
2018-01-05 16:16:56 -08:00
committed by tmarcu
parent ad7edc5022
commit 374bc06d76
-14
View File
@@ -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