@@ -168,22 +168,54 @@ var (
168168 },
169169 }
170170
171- // manually created
171+ // Manually created.
172+ // Files of `io.quarkus.gizmo.gizmo-1.1.jar` (gizmo:1.1.0 (from sha1)):
173+ //├── bar
174+ //│ ├── bar
175+ //│ │ └── pom.properties (jackson-databind:2.13.4)
176+ //│ └── foo
177+ //│ └── pom.properties (jackson-databind:2.12.3)
178+ //├── foo
179+ //│ ├── bar
180+ //│ │ └── pom.properties (jackson-databind:2.12.3)
181+ //│ └── foo
182+ //│ └── pom.properties (jackson-databind:2.13.4)
183+ //├── jars
184+ //│ ├── log4j-1.2.16.jar (log4j:1.2.16)
185+ //│ └── log4j-1.2.17.jar (log4j:1.2.17)
186+ //└── META-INF
187+ // ├── INDEX.LIST
188+ // ├── MANIFEST.MF
189+ // └── maven
190+ // └── io.quarkus.gizmo
191+ // └── gizmo
192+ // ├── pom.properties (gizmo:1.1)
193+ // └── pom.xml
172194 wantDuplicatesJar = []ftypes.Package {
173195 {
174196 Name : "io.quarkus.gizmo:gizmo" ,
175- Version : "1.1.1.Final " ,
176- FilePath : "testdata/io.quarkus.gizmo.gizmo-1.1.1.Final. jar" ,
197+ Version : "1.1" ,
198+ FilePath : "testdata/io.quarkus.gizmo.gizmo-1.1.jar" ,
177199 },
178200 {
179201 Name : "log4j:log4j" ,
180202 Version : "1.2.16" ,
181- FilePath : "testdata/io.quarkus.gizmo.gizmo-1.1.1.Final. jar/jars/log4j-1.2.16.jar" ,
203+ FilePath : "testdata/io.quarkus.gizmo.gizmo-1.1.jar/jars/log4j-1.2.16.jar" ,
182204 },
183205 {
184206 Name : "log4j:log4j" ,
185207 Version : "1.2.17" ,
186- FilePath : "testdata/io.quarkus.gizmo.gizmo-1.1.1.Final.jar/jars/log4j-1.2.17.jar" ,
208+ FilePath : "testdata/io.quarkus.gizmo.gizmo-1.1.jar/jars/log4j-1.2.17.jar" ,
209+ },
210+ {
211+ Name : "com.fasterxml.jackson.core:jackson-databind" ,
212+ Version : "2.12.3" ,
213+ FilePath : "testdata/io.quarkus.gizmo.gizmo-1.1.jar" ,
214+ },
215+ {
216+ Name : "com.fasterxml.jackson.core:jackson-databind" ,
217+ Version : "2.13.4" ,
218+ FilePath : "testdata/io.quarkus.gizmo.gizmo-1.1.jar" ,
187219 },
188220 }
189221)
@@ -251,7 +283,7 @@ func TestParse(t *testing.T) {
251283 },
252284 {
253285 name : "duplicate libraries" ,
254- file : "testdata/io.quarkus.gizmo.gizmo-1.1.1.Final. jar" ,
286+ file : "testdata/io.quarkus.gizmo.gizmo-1.1.jar" ,
255287 want : wantDuplicatesJar ,
256288 },
257289 }
@@ -277,13 +309,13 @@ func TestParse(t *testing.T) {
277309 }
278310 case strings .Contains (r .URL .Query ().Get ("q" ), "Gizmo" ):
279311 res .Response .NumFound = 0
280- case strings .Contains (r .URL .Query ().Get ("q" ), "85d30c06026afd9f5be26da3194d4698c447a904 " ):
312+ case strings .Contains (r .URL .Query ().Get ("q" ), "1c78bbc4d8c58b9af8eee82b84f2c26ec48e9a2b " ):
281313 res .Response .Docs = []doc {
282314 {
283315 ID : "io.quarkus.gizmo.gizmo" ,
284316 GroupID : "io.quarkus.gizmo" ,
285317 ArtifactID : "gizmo" ,
286- Version : "1.1.1.Final " ,
318+ Version : "1.1.0 " ,
287319 },
288320 }
289321 case strings .Contains (r .URL .Query ().Get ("q" ), "heuristic" ):
0 commit comments