mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
add image metadata as catalogFromJSON return
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -35,7 +35,7 @@ func TestNewFromImage(t *testing.T) {
|
||||
Layers: []*image.Layer{layer},
|
||||
}
|
||||
|
||||
t.Run("create a new Locations object from image", func(t *testing.T) {
|
||||
t.Run("create a new source object from image", func(t *testing.T) {
|
||||
_, err := NewFromImage(&img, AllLayersScope, "")
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error when creating a new Locations from img: %+v", err)
|
||||
|
||||
Reference in New Issue
Block a user