Skip to content

Release v0.3.1

Compare
Choose a tag to compare
@elrayle elrayle released this 30 Nov 21:16
· 101 commits to main since this release
1cab0d6

Overview

Add test case for OTHER license. Add TestSatisfiesSingle that makes it easy to modify variables and run an ad hoc test.

Required Action for Upgrading

There are no steps required to move to this release. This release adds adds tests only.

Details

TestSatisfiesSingle

You can test the Satisfies function with specific values and set the expected outcome. To create an ad hoc test:

  • edit spdx/satisfies_test.go
  • update variables for parameters (i.e. expression, allowedList)
  • update expectedResult to either true or false
  • run the test
go test ./spdxexp -run TestSatisfiesSingle

What's Changed

  • add test that can be easily updated to validate a specific expression to an allowed-list #22 (@elrayle)
  • add test that includes OTHER error #23 (elrayle)

Full Changelog: v0.3.0...v0.3.1