mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
fixing all golint and adding some more tests
This commit is contained in:
1 parent
2ccd40677d
commit
e446ba0738
19 files changed
+161
-91
No files matched your search
@@ -6,7 +6,6 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
||||
// TODO
|
||||
// add more substantial tests... but since literally every pkg uses manager
|
||||
// these tests are kind of redundant
|
||||
@@ -73,17 +72,17 @@ func TestSendReceiveMeta(t *testing.T) {
|
||||
})
|
||||
}
|
||||
md := m.GetMetadata()
|
||||
if md.cloneTime != test.cloneTime * int64(test.iterations) {
|
||||
if md.cloneTime != test.cloneTime*int64(test.iterations) {
|
||||
t.Errorf("clone time mismatch, got %d, wanted %d",
|
||||
md.cloneTime, test.cloneTime * int64(test.iterations))
|
||||
md.cloneTime, test.cloneTime*int64(test.iterations))
|
||||
}
|
||||
if md.AuditTime != test.auditTime * int64(test.iterations) {
|
||||
if md.AuditTime != test.auditTime*int64(test.iterations) {
|
||||
t.Errorf("audit time mismatch, got %d, wanted %d",
|
||||
md.AuditTime, test.auditTime * int64(test.iterations))
|
||||
md.AuditTime, test.auditTime*int64(test.iterations))
|
||||
}
|
||||
if md.patchTime != test.patchTime * int64(test.iterations) {
|
||||
if md.patchTime != test.patchTime*int64(test.iterations) {
|
||||
t.Errorf("clone time mismatch, got %d, wanted %d",
|
||||
md.patchTime, test.patchTime * int64(test.iterations))
|
||||
md.patchTime, test.patchTime*int64(test.iterations))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user