coverage test for ScanResultReport AsFNVHash function

Signed-off-by: cbrom <kb.cbrom@gmail.com>
This commit is contained in:
cbrom
2023-11-24 15:07:11 +03:00
parent 3ce838e344
commit f3670ca629
@@ -293,3 +293,12 @@ func TestCalculateFixed(t *testing.T) {
})
}
}
func TestReturnsHashValueForValidInputValues(t *testing.T) {
report := ScanResultReport{}
expectedHash := "7416232187745851261"
actualHash := report.AsFNVHash()
if actualHash != expectedHash {
t.Errorf("Expected hash value %s, but got %s", expectedHash, actualHash)
}
}