mirror of
https://github.com/Dvorinka/Devour.git
synced 2026-06-04 12:33:04 +00:00
i dont like commits
This commit is contained in:
@@ -271,8 +271,11 @@ func TestScanner_Scan_WithFailingDetector(t *testing.T) {
|
||||
}
|
||||
|
||||
// Should succeed despite failing detector
|
||||
if len(result.Findings) != 0 {
|
||||
t.Errorf("Scan() expected 0 findings, got %d", len(result.Findings))
|
||||
if len(result.Findings) != 1 {
|
||||
t.Errorf("Scan() expected 1 detector_error finding, got %d", len(result.Findings))
|
||||
}
|
||||
if len(result.Findings) == 1 && result.Findings[0].Type != "detector_error" {
|
||||
t.Errorf("Scan() expected detector_error finding, got %q", result.Findings[0].Type)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user