mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
chore: update test
Signed-off-by: Keith Zantow <keith.zantow@anchore.com>
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
|||||||
func readManifest(t *testing.T, ctx context.Context, parser *archiveParser) *pkg.JavaManifest {
|
func readManifest(t *testing.T, ctx context.Context, parser *archiveParser) *pkg.JavaManifest {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
|
||||||
matches := parser.fileManifest.GlobMatch(false, manifestGlob)
|
matches := parser.entries.glob(false, manifestGlob)
|
||||||
require.Len(t, matches, 1)
|
require.Len(t, matches, 1)
|
||||||
|
|
||||||
contents, err := intFile.ContentsFromZip(ctx, parser.archivePath, matches...)
|
contents, err := intFile.ContentsFromZip(ctx, parser.archivePath, matches...)
|
||||||
|
|||||||
Reference in New Issue
Block a user