@@ -168,22 +168,54 @@ var (
168
168
},
169
169
}
170
170
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
172
194
wantDuplicatesJar = []ftypes.Package {
173
195
{
174
196
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" ,
177
199
},
178
200
{
179
201
Name : "log4j:log4j" ,
180
202
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" ,
182
204
},
183
205
{
184
206
Name : "log4j:log4j" ,
185
207
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" ,
187
219
},
188
220
}
189
221
)
@@ -251,7 +283,7 @@ func TestParse(t *testing.T) {
251
283
},
252
284
{
253
285
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" ,
255
287
want : wantDuplicatesJar ,
256
288
},
257
289
}
@@ -277,13 +309,13 @@ func TestParse(t *testing.T) {
277
309
}
278
310
case strings .Contains (r .URL .Query ().Get ("q" ), "Gizmo" ):
279
311
res .Response .NumFound = 0
280
- case strings .Contains (r .URL .Query ().Get ("q" ), "85d30c06026afd9f5be26da3194d4698c447a904 " ):
312
+ case strings .Contains (r .URL .Query ().Get ("q" ), "1c78bbc4d8c58b9af8eee82b84f2c26ec48e9a2b " ):
281
313
res .Response .Docs = []doc {
282
314
{
283
315
ID : "io.quarkus.gizmo.gizmo" ,
284
316
GroupID : "io.quarkus.gizmo" ,
285
317
ArtifactID : "gizmo" ,
286
- Version : "1.1.1.Final " ,
318
+ Version : "1.1.0 " ,
287
319
},
288
320
}
289
321
case strings .Contains (r .URL .Query ().Get ("q" ), "heuristic" ):
0 commit comments