Skip to content

Commit 6a9576c

Browse files
committed
Update tallies test expectations
Reference: #2842 Signed-off-by: Jono Yang <[email protected]>
1 parent 72504e5 commit 6a9576c

12 files changed

+1394
-87
lines changed

tests/summarycode/data/plugin_consolidate/component-package-expected.json

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"tool_name": "scancode-toolkit",
55
"options": {
66
"input": "<path>",
7-
"--consolidate": true,
87
"--copyright": true,
98
"--info": true,
109
"--json": "<file>",
@@ -15,6 +14,44 @@
1514
"output_format_version": "2.0.0",
1615
"message": null,
1716
"errors": [],
17+
"warnings": [],
18+
"extra_data": {
19+
"spdx_license_list_version": "3.16",
20+
"files_count": 7
21+
}
22+
},
23+
{
24+
"tool_name": "scancode-toolkit",
25+
"options": {
26+
"input": "<path>",
27+
"--consolidate": true,
28+
"--from-json": true,
29+
"--json": "<file>"
30+
},
31+
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
32+
"output_format_version": "2.0.0",
33+
"message": null,
34+
"errors": [],
35+
"warnings": [
36+
"The --consolidate option will be deprecated in a future version of scancode-toolkit."
37+
],
38+
"extra_data": {
39+
"spdx_license_list_version": "3.16",
40+
"files_count": 7
41+
}
42+
},
43+
{
44+
"tool_name": "scancode-toolkit",
45+
"options": {
46+
"input": "<path>",
47+
"--consolidate": true,
48+
"--from-json": true,
49+
"--json": "<file>"
50+
},
51+
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
52+
"output_format_version": "2.0.0",
53+
"message": null,
54+
"errors": [],
1855
"warnings": [
1956
"The --consolidate option will be deprecated in a future version of scancode-toolkit."
2057
],

tests/summarycode/data/tallies/copyright_tallies/tallies.expected.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,54 @@
2424
{
2525
"value": null,
2626
"count": 4
27+
},
28+
{
29+
"value": "Copyright (c) Jean-loup Gailly",
30+
"count": 4
31+
},
32+
{
33+
"value": "Copyright (c) Mark Adler",
34+
"count": 4
35+
},
36+
{
37+
"value": "Copyright (c) Jean-loup Gailly and Mark Adler",
38+
"count": 3
39+
},
40+
{
41+
"value": "Copyright (c) Brian Goetz and Tim Peierls",
42+
"count": 1
43+
},
44+
{
45+
"value": "Copyright (c) Christian Michelsen Research AS Advanced Computing",
46+
"count": 1
47+
},
48+
{
49+
"value": "Copyright (c) Dmitriy Anisimkov",
50+
"count": 1
51+
},
52+
{
53+
"value": "Copyright (c) Jean-loup Gailly, Brian Raiter and Gilles Vollant",
54+
"count": 1
55+
},
56+
{
57+
"value": "Copyright (c) by Henrik Ravn",
58+
"count": 1
59+
},
60+
{
61+
"value": "Copyright Henrik Ravn",
62+
"count": 1
63+
},
64+
{
65+
"value": "Copyright JBoss Inc., and individual contributors",
66+
"count": 1
67+
},
68+
{
69+
"value": "Copyright Red Hat Middleware LLC, and individual contributors",
70+
"count": 1
71+
},
72+
{
73+
"value": "Copyright Red Hat, Inc. and individual contributors",
74+
"count": 1
2775
}
2876
],
2977
"holders": [

tests/summarycode/data/tallies/copyright_tallies/tallies2.expected.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@
2020
}
2121
],
2222
"tallies": {
23-
"copyrights": [],
23+
"copyrights": [
24+
{
25+
"value": "Copyright (c) Mort Bay Consulting Pty. Ltd. (Australia) and others",
26+
"count": 1
27+
},
28+
{
29+
"value": "copyright Sun Microsystems Inc.",
30+
"count": 1
31+
}
32+
],
2433
"holders": [
2534
{
2635
"value": "Mort Bay Consulting Pty. Ltd. (Australia) and others",

0 commit comments

Comments
 (0)