Skip to content

Commit

Permalink
test: expose missing Properties via failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
desenna committed May 19, 2022
1 parent 207c038 commit 8a87d70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cyclonedx_test.go
Expand Up @@ -217,3 +217,11 @@ func TestLicenses_UnmarshalXML(t *testing.T) {
err = xml.Unmarshal([]byte("<Licenses><somethingElse>expressionValue</somethingElse></Licenses>"), licenses)
assert.Error(t, err)
}

func TestVulnerability(t *testing.T) {
// GIVEN
var vuln Vulnerability

// EXPECT
assert.Equal(t, 0, len(*vuln.Properties))
}

0 comments on commit 8a87d70

Please sign in to comment.