-
Keith Zantow committed with GitHub 1 year ago1 parent b379dd9f
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
-
-
skipped 291 lines 292 292 fixtureDir: "test-fixtures/classifiers/positive/python-binary-lib-3.7", 293 293 expected: pkg.Package{ 294 294 Name: "python", 295 - Version: "3.7.4a-vZ9", 296 - PURL: "pkg:generic/[email protected].4a-vZ9", 295 + Version: "3.7.4", 296 + PURL: "pkg:generic/[email protected].4", 297 297 Locations: locations("libpython3.7.so"), 298 298 Metadata: metadata("python-binary-lib"), 299 299 }, skipped 45 lines 345 345 match("python-binary", "python3.9"), 346 346 }, 347 347 }, 348 + }, 349 + }, 350 + { 351 + name: "positive-python-binary-3.4-alpine", 352 + fixtureDir: "test-fixtures/classifiers/dynamic/python-binary-3.4-alpine", 353 + expected: pkg.Package{ 354 + Name: "python", 355 + Version: "3.4.10", 356 + PURL: "pkg:generic/[email protected]", 357 + Locations: locations("python3.4", "libpython3.4m.so.1.0"), 358 + Metadata: pkg.BinaryMetadata{ 359 + Matches: []pkg.ClassifierMatch{ 360 + match("python-binary", "python3.4"), 361 + match("python-binary", "libpython3.4m.so.1.0"), 362 + match("python-binary-lib", "libpython3.4m.so.1.0"), 363 + }, 364 + }, 365 + }, 366 + }, 367 + { 368 + name: "positive-python-3.5-with-incorrect-match", 369 + fixtureDir: "test-fixtures/classifiers/positive/python-3.5-with-incorrect-match", 370 + expected: pkg.Package{ 371 + Name: "python", 372 + Version: "3.5.3", 373 + PURL: "pkg:generic/[email protected]", 374 + Locations: locations("python3.5"), 375 + Metadata: metadata("python-binary"), 348 376 }, 349 377 }, 350 378 { skipped 225 lines 576 604 packages, _, err := c.Catalog(resolver) 577 605 require.NoError(t, err) 578 606 579 - for _, p := range packages { 580 - assertPackagesAreEqual(t, test.expected, p) 581 - } 607 + require.Len(t, packages, 1) 608 + 609 + assertPackagesAreEqual(t, test.expected, packages[0]) 582 610 }) 583 611 } 584 612 } skipped 229 lines -
-
-
-
syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/python-3.5-with-incorrect-match/python3.5Binary file.
-
syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/python-binary-lib-3.7/libpython3.7.soBinary file.
-
test/compare/test-fixtures/acceptance-centos-8.2.2004.jsonUnable to diff as the file is too large.