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