syft/test/integration
Alex Goodman 4da3be864f
Refactor source API (#1846)
* refactor source API and syft json source block

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update source detection and format test utils

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* generate list of all source metadata types

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* extract base and root normalization into helper functions

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* preserve syftjson model package name import ref

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* alias should not be a pointer

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

---------

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
2023-06-30 14:19:16 +00:00
..
test-fixtures feat: Add R cataloger (#1790) 2023-05-10 12:30:11 -04:00
all_layers_squashed_comparison_test.go rename sbom.PackageCatalog to sbom.Packages (#1773) 2023-05-01 10:19:58 -04:00
catalog_packages_cases_test.go feat: Add R cataloger (#1790) 2023-05-10 12:30:11 -04:00
catalog_packages_test.go Refactor source API (#1846) 2023-06-30 14:19:16 +00:00
convert_test.go feat: Allow specific versions of formats to be specified (#1543) 2023-02-07 10:40:43 -05:00
distro_test.go Add gosimports (#1205) 2022-09-14 13:38:18 -04:00
encode_decode_cycle_test.go Pr 1825 (#1865) 2023-06-05 17:01:00 +00:00
license_list_test.go Add gosimports (#1205) 2022-09-14 13:38:18 -04:00
mariner_distroless_test.go rename sbom.PackageCatalog to sbom.Packages (#1773) 2023-05-01 10:19:58 -04:00
node_packages_test.go rename sbom.PackageCatalog to sbom.Packages (#1773) 2023-05-01 10:19:58 -04:00
package_deduplication_test.go feat: update syft license concept to complex struct (#1743) 2023-05-15 16:23:39 -04:00
package_ownership_relationship_test.go Add gosimports (#1205) 2022-09-14 13:38:18 -04:00
regression_apk_scanner_buffer_size_test.go rename sbom.PackageCatalog to sbom.Packages (#1773) 2023-05-01 10:19:58 -04:00
regression_go_bin_scanner_arch_test.go rename sbom.PackageCatalog to sbom.Packages (#1773) 2023-05-01 10:19:58 -04:00
regression_java_no_main_package_test.go cataloger configuration is respected regardless of source (#1142) 2022-08-04 21:14:23 +00:00
rust_audit_binary_test.go rename sbom.PackageCatalog to sbom.Packages (#1773) 2023-05-01 10:19:58 -04:00
sbom_cataloger_test.go rename sbom.PackageCatalog to sbom.Packages (#1773) 2023-05-01 10:19:58 -04:00
sqlite_rpmdb_test.go rename sbom.PackageCatalog to sbom.Packages (#1773) 2023-05-01 10:19:58 -04:00
utils_test.go Refactor source API (#1846) 2023-06-30 14:19:16 +00:00