Skip to content

Improve SPDX document validation#200

Merged
kzantow merged 1 commit intospdx:mainfrom
neilnaveen:neil/fix/test/documents
Mar 3, 2023
Merged

Improve SPDX document validation#200
kzantow merged 1 commit intospdx:mainfrom
neilnaveen:neil/fix/test/documents

Conversation

@neilnaveen
Copy link
Copy Markdown
Contributor

  • Update the CatagorySecurity to CategorySecurity in model.go
  • Add file1 to the list of files in documents_test.go to increase coverage
  • Add a validation test for an invalid document with an invalid relationship in documents_test.go

[spdx/model.go]

  • Change CatagorySecurity to CategorySecurity [spdxlib/documents_test.go]
  • Add file1 to the list of files
  • Change the relationship between p1 and p99 to DEPENDS_ON
  • Add a validation test for an invalid document with an invalid relationship

- Update the `CatagorySecurity` to `CategorySecurity` in `model.go`
- Add `file1` to the list of files in `documents_test.go` to increase coverage
- Add a validation test for an invalid document with an invalid relationship in `documents_test.go`

[spdx/model.go]
- Change `CatagorySecurity` to `CategorySecurity`
[spdxlib/documents_test.go]
- Add `file1` to the list of files
- Change the relationship between `p1` and `p99` to `DEPENDS_ON`
- Add a validation test for an invalid document with an invalid relationship

Signed-off-by: Neil Naveen <42328488+neilnaveen@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@kzantow kzantow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @neilnaveen

@kzantow kzantow merged commit be1c1c5 into spdx:main Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants