github.com/lineaje-labs/syft@v0.98.1-0.20231227153149-9e393f60ff1b/cmd/syft/cli/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.buildConfig("Version")
    14  	assertExpectedValue(t, subject)
    15  }