syft/test/cli
Alex Goodman 7392d607b6
Split the sbom.Format interface by encode and decode use cases (#2186)
* split up sbom.Format into encode and decode ops

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

* update cmd pkg to inject format configs

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

* bump cyclonedx schema to 1.5

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

* redact image metadata from github encoder tests

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

* add more testing around format decoder identify

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

* add test case for format version options

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

* fix cli tests

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

* fix CLI test

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

* [wip] - review comments

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

* keep encoder creation out of post load function

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

* keep decider and identify functions

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

* add a few more doc comments

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

* remove format encoder default function helpers

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

* address PR feedback

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

* move back to streaming based decode functions

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

* with common convention for encoder constructors

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

* fix tests and allow for encoders to be created from cli options

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

* fix cli tests

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

* fix linting

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

* buffer reads from stdin to support seeking

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

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
2023-10-25 13:43:06 +00:00
..
test-fixtures chore: pin all cli test FROM lines to linux/amd64 (#2137) 2023-09-15 12:49:02 -04:00
all_formats_convertible_test.go Keep original FileInfo persisted on file.Metadata structs (#1794) 2023-05-19 14:21:10 +00:00
all_formats_expressible_test.go Split the sbom.Format interface by encode and decode use cases (#2186) 2023-10-25 13:43:06 +00:00
convert_cmd_test.go Add Linux Kernel cataloger (#1694) 2023-04-14 14:33:36 -04:00
cyclonedx_valid_test.go Split the sbom.Format interface by encode and decode use cases (#2186) 2023-10-25 13:43:06 +00:00
dir_root_scan_regression_test.go Add Linux Kernel cataloger (#1694) 2023-04-14 14:33:36 -04:00
json_schema_test.go Pr 1825 (#1865) 2023-06-05 17:01:00 +00:00
packages_cmd_test.go Add GitHub actions and shared workflow usage catalogers (#2140) 2023-09-15 18:51:21 +00:00
power_user_cmd_test.go Add Linux Kernel cataloger (#1694) 2023-04-14 14:33:36 -04:00
root_cmd_test.go Add Linux Kernel cataloger (#1694) 2023-04-14 14:33:36 -04:00
spdx_json_schema_test.go Pr 1825 (#1865) 2023-06-05 17:01:00 +00:00
spdx_tooling_validation_test.go fix: SPDX license values and download location (#2007) 2023-08-08 15:55:50 -04:00
trait_assertions_test.go fix quiet flag (#2081) 2023-08-31 10:40:11 -04:00
utils_test.go fix: SPDX license values and download location (#2007) 2023-08-08 15:55:50 -04:00