From 8a87d70debea5098683d159338f48585ddce7285 Mon Sep 17 00:00:00 2001 From: Mike de Senna Date: Thu, 19 May 2022 09:29:18 -0400 Subject: [PATCH] test: expose missing Properties via failing test --- cyclonedx_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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)) +}