diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-15 14:39:39 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-15 14:39:39 +0700 |
| commit | 9be132113a261309f73aaddbb83af898a88db385 (patch) | |
| tree | 6b59878c46a3d5ee106b7aaba8b9bea5c2eae032 /report_test.go | |
| parent | e662e3bc3c4aadf15a360495deaa86939ce84980 (diff) | |
| download | spdxconv-9be132113a261309f73aaddbb83af898a88db385.tar.xz | |
all: move checking REUSE annotation after all files listed
Use case: on the first scan, the file result in group unknown.
User then modify the spdxconv.cfg to add or update the match-file-pattern.
The next scan should check again the files in unknown group, in case
its match with updated config.
Diffstat (limited to 'report_test.go')
| -rw-r--r-- | report_test.go | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/report_test.go b/report_test.go index fc8ea65..e77901d 100644 --- a/report_test.go +++ b/report_test.go @@ -53,15 +53,8 @@ func TestLoadReport(t *testing.T) { group: groupBinary, }, }, - listUnknown: map[string]*file{ - `fileU1`: &file{ - path: `fileU1`, - licenseID: valDefault, - copyrightText: valDefault, - group: groupUnknown, - }, - }, - listDone: map[string]*file{}, + listUnknown: map[string]*file{}, + listDone: map[string]*file{}, } test.Assert(t, workDir, exp, got) } |
