mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
* internalize majority of cmd package and migrate integration tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add internal api encoder Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * create internal representation of all formats Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * export capability to get default encoders Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * restore test fixtures Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
16 lines
300 B
Go
16 lines
300 B
Go
package options
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestFormatSyftJSON_buildConfig(t *testing.T) {
|
|
// assert when building the config that we respond to all possible fields
|
|
|
|
ft := &FormatSyftJSON{}
|
|
ft = setAllToNonZero(t, ft).(*FormatSyftJSON)
|
|
|
|
subject := ft.config()
|
|
assertExpectedValue(t, subject)
|
|
}
|