#12: implement Antispam & Antivirus scanning pipeline (Rspamd & ClamAV)
This commit is contained in:
1 parent
4c2e0b9563
commit
54d1ea5810
15 files changed
+825
-5
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package valueobject
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewCleanScanResult(t *testing.T) {
|
||||
res := NewCleanScanResult()
|
||||
if res.Verdict != ScanVerdictClean {
|
||||
t.Errorf("verdict = %s, want CLEAN", res.Verdict)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewVirusScanResult(t *testing.T) {
|
||||
res := NewVirusScanResult("EICAR-Test-Signature")
|
||||
if res.Verdict != ScanVerdictVirusReject || res.VirusName != "EICAR-Test-Signature" {
|
||||
t.Errorf("unexpected virus scan result: %+v", res)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user