Skip to content

Commit

Permalink
TC-1750 CycloneDx 1.5 test
Browse files Browse the repository at this point in the history
Signed-off-by: mrizzi <[email protected]>
  • Loading branch information
mrizzi committed Sep 5, 2024
1 parent 9f02a74 commit 6943af2
Show file tree
Hide file tree
Showing 2 changed files with 5,591 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bombastic/model/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ mod tests {
assert!(result.is_ok());
}

#[test]
fn parse_cyclonedx_valid_15() {
let data = include_bytes!("../../testdata/syft.cyclonedx-1.5.json");
let result = SBOM::parse(data);
assert!(result.is_ok());
}

#[test]
fn parse_cyclonedx_valid_14_newline() {
let data = include_bytes!("../../testdata/syft.cyclonedx.newline.json");
Expand Down
Loading

0 comments on commit 6943af2

Please sign in to comment.