*: gofmt -s
This commit is contained in:
parent
52ecf35ca6
commit
ce15f73501
@ -45,8 +45,8 @@ func TestMultipleNamespaceDetector(t *testing.T) {
|
||||
testData := []MultipleNamespaceTestData{
|
||||
{
|
||||
ExpectedNamespaces: []database.Namespace{
|
||||
database.Namespace{Name: "debian:8", VersionFormat: "dpkg"},
|
||||
database.Namespace{Name: "alpine:v3.3", VersionFormat: "dpkg"},
|
||||
{Name: "debian:8", VersionFormat: "dpkg"},
|
||||
{Name: "alpine:v3.3", VersionFormat: "dpkg"},
|
||||
},
|
||||
Files: tarutil.FilesMap{
|
||||
"etc/os-release": []byte(`
|
||||
|
@ -372,7 +372,7 @@ func severity(def definition) database.Severity {
|
||||
case "Critical":
|
||||
return database.CriticalSeverity
|
||||
default:
|
||||
log.Warning("could not determine vulnerability severity from: %s.", def.Title)
|
||||
log.Warningf("could not determine vulnerability severity from: %s.", def.Title)
|
||||
return database.UnknownSeverity
|
||||
}
|
||||
}
|
||||
|
@ -416,7 +416,7 @@ func SeverityFromPriority(priority string) database.Severity {
|
||||
case "critical":
|
||||
return database.CriticalSeverity
|
||||
default:
|
||||
log.Warning("could not determine a vulnerability severity from: %s", priority)
|
||||
log.Warningf("could not determine a vulnerability severity from: %s", priority)
|
||||
return database.UnknownSeverity
|
||||
}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ func newmockUpdaterDatastore() *mockUpdaterDatastore {
|
||||
vuln, ok := session.copy.vulnerabilities[id]
|
||||
r = append(r, database.NullableVulnerability{
|
||||
VulnerabilityWithAffected: vuln,
|
||||
Valid: ok,
|
||||
Valid: ok,
|
||||
})
|
||||
}
|
||||
return r, nil
|
||||
|
Loading…
Reference in New Issue
Block a user