Add testcases for #153

This commit is contained in:
Kota Kanbe
2016-08-23 19:26:34 +09:00
parent 30f7527f10
commit d8dc3650d3
3 changed files with 9 additions and 8 deletions

View File

@@ -553,6 +553,7 @@ func (o *debian) scanPackageCveIDs(pack models.PackageInfo) ([]string, error) {
return nil, nil
}
// No error will be returned. Only logging.
return o.getCveIDParsingChangelog(r.Stdout, pack.Name, pack.Version)
}
@@ -579,7 +580,7 @@ func (o *debian) getCveIDParsingChangelog(changelog string,
return
}
//TODO report as unable to parse changelog.
// Only logging the error.
o.log.Error(err)
return []string{}, nil
}