fixing all golint and adding some more tests

This commit is contained in:
zach rice committed 2019-11-11 21:50:50 -05:00
1 parent 2ccd40677d
commit e446ba0738
19 files changed
+161 -91

No files matched your search

+6 -7
View File
@@ -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))
}
}
}