mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
fix tests to use location instead of file.Reference
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -73,7 +73,7 @@ func TestCatalogFromJSON(t *testing.T) {
|
||||
a := actualPackages[i]
|
||||
|
||||
// omit fields that should be missing
|
||||
e.Source = nil
|
||||
e.Locations = nil
|
||||
e.FoundBy = ""
|
||||
if e.MetadataType == pkg.JavaMetadataType {
|
||||
metadata := e.Metadata.(pkg.JavaMetadata)
|
||||
|
||||
Reference in New Issue
Block a user