diff --git a/cyclonedx_test.go b/cyclonedx_test.go index 3ced188..9c34539 100644 --- a/cyclonedx_test.go +++ b/cyclonedx_test.go @@ -217,3 +217,11 @@ func TestLicenses_UnmarshalXML(t *testing.T) { err = xml.Unmarshal([]byte("expressionValue"), licenses) assert.Error(t, err) } + +func TestVulnerability(t *testing.T) { + // GIVEN + var vuln Vulnerability + + // EXPECT + assert.Equal(t, 0, len(*vuln.Properties)) +}