mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
coverage test for ScanResultReport AsFNVHash function
Signed-off-by: cbrom <kb.cbrom@gmail.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user