github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/cmd/syft/internal/options/format_syft_json_test.go (about) 1 package options 2 3 import ( 4 "testing" 5 ) 6 7 func TestFormatSyftJSON_buildConfig(t *testing.T) { 8 // assert when building the config that we respond to all possible fields 9 10 ft := &FormatSyftJSON{} 11 ft = setAllToNonZero(t, ft).(*FormatSyftJSON) 12 13 subject := ft.config() 14 assertExpectedValue(t, subject) 15 }