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