mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 22:46:36 +01:00
swap format readseekers for readers (#2581)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
@@ -276,18 +276,14 @@ func TestSelectName(t *testing.T) {
|
||||
expected: "atlassian-gadgets-api",
|
||||
},
|
||||
{
|
||||
desc: "Filename has period that is not groupid + artifact id",
|
||||
manifest: pkg.JavaManifest{
|
||||
Main: map[string]string{},
|
||||
},
|
||||
desc: "Filename has period that is not groupid + artifact id",
|
||||
manifest: pkg.JavaManifest{},
|
||||
archive: newJavaArchiveFilename("/something/http4s-crypto_2.12-0.1.0.jar"),
|
||||
expected: "http4s-crypto_2.12",
|
||||
},
|
||||
{
|
||||
desc: "Filename has period that is not groupid + artifact id, kafka",
|
||||
manifest: pkg.JavaManifest{
|
||||
Main: map[string]string{},
|
||||
},
|
||||
desc: "Filename has period that is not groupid + artifact id, kafka",
|
||||
manifest: pkg.JavaManifest{},
|
||||
archive: newJavaArchiveFilename("/something//kafka_2.13-3.2.2.jar"),
|
||||
expected: "kafka_2.13", // see https://mvnrepository.com/artifact/org.apache.kafka/kafka_2.13/3.2.2
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user