Skip to content

Commit

Permalink
Allow SPDX Identifier matches to be additive to all subsequent find f…
Browse files Browse the repository at this point in the history
…unctions

Signed-off-by: Matt Rutkowski <mrutkows@us.ibm.com>
  • Loading branch information
mrutkows committed Jun 11, 2024
1 parent f267ca1 commit ea03344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion identifier/identifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@ func Test_identifyLicensesInStringPreChecks(t *testing.T) {
if err := ll.AddAll(); err != nil {
t.Fatalf("AddAll() error = %v", err)
}
got, err := IdentifyLicensesInString(tt.input, options, ll)
identifierResults = IdentifierResults{}

Check failure on line 608 in identifier/identifier_test.go

View workflow job for this annotation

GitHub Actions / build

undefined: identifierResults
err := IdentifyLicensesInString(&identifierResults, tt.input, options, ll)

Check failure on line 609 in identifier/identifier_test.go

View workflow job for this annotation

GitHub Actions / build

no new variables on left side of :=

Check failure on line 609 in identifier/identifier_test.go

View workflow job for this annotation

GitHub Actions / build

undefined: identifierResults
if err != nil {
t.Errorf("identifyLicensesInString() error = %v", err)
} else if d := cmp.Diff(tt.want.Matches, got.Matches, cmp.AllowUnexported(Match{})); d != "" {

Check failure on line 612 in identifier/identifier_test.go

View workflow job for this annotation

GitHub Actions / build

undefined: got
Expand Down

0 comments on commit ea03344

Please sign in to comment.