Skip to content

Commit 2617293

Browse files
Update test expectations with pname additions
Signed-off-by: Ayan Sinha Mahapatra <asmahapatra@aboutcode.org>
1 parent e7b8454 commit 2617293

507 files changed

Lines changed: 1654 additions & 620 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎tests/formattedcode/data/common/manifests-expected.json‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
],
6161
"is_private": false,
6262
"is_virtual": false,
63-
"extra_data": {},
63+
"extra_data": {
64+
"pname": "Enterprise JavaBeans (EJB) 3.0"
65+
},
6466
"repository_homepage_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/",
6567
"repository_download_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar",
6668
"api_data_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.pom",
@@ -1162,7 +1164,9 @@
11621164
"file_references": [],
11631165
"is_private": false,
11641166
"is_virtual": false,
1165-
"extra_data": {},
1167+
"extra_data": {
1168+
"pname": "Enterprise JavaBeans (EJB) 3.0"
1169+
},
11661170
"dependencies": [],
11671171
"repository_homepage_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/",
11681172
"repository_download_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar",

‎tests/formattedcode/data/common/manifests-expected.jsonlines‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@
99
"--info": true,
1010
"--json-lines": "<file>",
1111
"--license": true,
12-
"--package": true
12+
"--package": true,
13+
"--processes": "-1"
1314
},
1415
"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.",
15-
"output_format_version": "4.0.0",
16+
"output_format_version": "4.1.0",
1617
"message": null,
1718
"errors": [],
1819
"warnings": [],
1920
"extra_data": {
2021
"system_environment": {
2122
"operating_system": "linux",
2223
"cpu_architecture": "64",
23-
"platform": "Linux-5.15.0-141-generic-x86_64-with-glibc2.35",
24-
"platform_version": "#151-Ubuntu SMP Sun May 18 21:35:19 UTC 2025",
25-
"python_version": "3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0]"
24+
"platform": "Linux-5.15.0-198-generic-x86_64-with-glibc2.35",
25+
"platform_version": "#208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026",
26+
"python_version": "3.10.12 (main, Aug 31 2026, 10:18:17) [GCC 11.4.0]"
2627
},
2728
"spdx_license_list_version": "3.28",
2829
"files_count": 4
@@ -92,7 +93,9 @@
9293
],
9394
"is_private": false,
9495
"is_virtual": false,
95-
"extra_data": {},
96+
"extra_data": {
97+
"pname": "Enterprise JavaBeans (EJB) 3.0"
98+
},
9699
"repository_homepage_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/",
97100
"repository_download_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar",
98101
"api_data_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.pom",
@@ -1208,7 +1211,9 @@
12081211
"file_references": [],
12091212
"is_private": false,
12101213
"is_virtual": false,
1211-
"extra_data": {},
1214+
"extra_data": {
1215+
"pname": "Enterprise JavaBeans (EJB) 3.0"
1216+
},
12121217
"dependencies": [],
12131218
"repository_homepage_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/",
12141219
"repository_download_url": "https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar",

‎tests/formattedcode/data/common/manifests-expected.yaml‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ headers:
1111
--license-references: yes
1212
--license-text: yes
1313
--package: yes
14+
--processes: -1
1415
--summary: yes
1516
--url: yes
1617
--yaml: <file>
@@ -21,17 +22,17 @@ headers:
2122
for any legal advice.
2223
ScanCode is a free software code scanning tool from nexB Inc. and others.
2324
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
24-
output_format_version: 4.0.0
25+
output_format_version: 4.1.0
2526
message:
2627
errors: []
2728
warnings: []
2829
extra_data:
2930
system_environment:
3031
operating_system: linux
3132
cpu_architecture: 64
32-
platform: Linux-5.15.0-141-generic-x86_64-with-glibc2.35
33-
platform_version: '#151-Ubuntu SMP Sun May 18 21:35:19 UTC 2025'
34-
python_version: 3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0]
33+
platform: Linux-5.15.0-198-generic-x86_64-with-glibc2.35
34+
platform_version: '#208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026'
35+
python_version: 3.10.12 (main, Aug 31 2026, 10:18:17) [GCC 11.4.0]
3536
spdx_license_list_version: '3.28'
3637
files_count: 4
3738
summary:
@@ -120,7 +121,8 @@ packages:
120121
- pkg:maven/javax.persistence/persistence-api@1.0?classifier=sources
121122
is_private: no
122123
is_virtual: no
123-
extra_data: {}
124+
extra_data:
125+
pname: Enterprise JavaBeans (EJB) 3.0
124126
repository_homepage_url: https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/
125127
repository_download_url: https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar
126128
api_data_url: https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.pom
@@ -2034,7 +2036,8 @@ files:
20342036
file_references: []
20352037
is_private: no
20362038
is_virtual: no
2037-
extra_data: {}
2039+
extra_data:
2040+
pname: Enterprise JavaBeans (EJB) 3.0
20382041
dependencies: []
20392042
repository_homepage_url: https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/
20402043
repository_download_url: https://repo1.maven.org/maven2/javax/persistence/persistence-api/1.0/persistence-api-1.0.jar

‎tests/packagedcode/data/license_detection/license-as-manifest-comment/activemq-camel.expected.json‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
],
6565
"is_private": false,
6666
"is_virtual": false,
67-
"extra_data": {},
67+
"extra_data": {
68+
"pname": "ActiveMQ :: Camel"
69+
},
6870
"repository_homepage_url": "https://repo1.maven.org/maven2/org/apache/activemq/activemq-camel/5.4.2/",
6971
"repository_download_url": "https://repo1.maven.org/maven2/org/apache/activemq/activemq-camel/5.4.2/activemq-camel-5.4.2.jar",
7072
"api_data_url": "https://repo1.maven.org/maven2/org/apache/activemq/activemq-camel/5.4.2/activemq-camel-5.4.2.pom",
@@ -344,7 +346,9 @@
344346
"file_references": [],
345347
"is_private": false,
346348
"is_virtual": false,
347-
"extra_data": {},
349+
"extra_data": {
350+
"pname": "ActiveMQ :: Camel"
351+
},
348352
"dependencies": [
349353
{
350354
"purl": "pkg:maven/commons-logging/commons-logging-api",

‎tests/packagedcode/data/license_detection/license-as-manifest-comment/activemq-camel_without_license.expected.json‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
],
3838
"is_private": false,
3939
"is_virtual": false,
40-
"extra_data": {},
40+
"extra_data": {
41+
"pname": "ActiveMQ :: Camel"
42+
},
4143
"repository_homepage_url": "https://repo1.maven.org/maven2/org/apache/activemq/activemq-camel/5.4.2/",
4244
"repository_download_url": "https://repo1.maven.org/maven2/org/apache/activemq/activemq-camel/5.4.2/activemq-camel-5.4.2.jar",
4345
"api_data_url": "https://repo1.maven.org/maven2/org/apache/activemq/activemq-camel/5.4.2/activemq-camel-5.4.2.pom",
@@ -261,7 +263,9 @@
261263
"file_references": [],
262264
"is_private": false,
263265
"is_virtual": false,
264-
"extra_data": {},
266+
"extra_data": {
267+
"pname": "ActiveMQ :: Camel"
268+
},
265269
"dependencies": [
266270
{
267271
"purl": "pkg:maven/commons-logging/commons-logging-api",

‎tests/packagedcode/data/m2/antlr/antlr/2.7.6/antlr-2.7.6.pom.package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
"file_references": [],
3737
"is_private": false,
3838
"is_virtual": false,
39-
"extra_data": {},
39+
"extra_data": {
40+
"pname": "AntLR"
41+
},
4042
"dependencies": [],
4143
"repository_homepage_url": "https://repo1.maven.org/maven2/antlr/antlr/2.7.6/",
4244
"repository_download_url": "https://repo1.maven.org/maven2/antlr/antlr/2.7.6/antlr-2.7.6.jar",

‎tests/packagedcode/data/m2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom.package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@
5959
"file_references": [],
6060
"is_private": false,
6161
"is_virtual": false,
62-
"extra_data": {},
62+
"extra_data": {
63+
"pname": "AOP alliance"
64+
},
6365
"dependencies": [],
6466
"repository_homepage_url": "https://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/",
6567
"repository_download_url": "https://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.jar",

‎tests/packagedcode/data/m2/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.pom.package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
"file_references": [],
5959
"is_private": false,
6060
"is_virtual": false,
61-
"extra_data": {},
61+
"extra_data": {
62+
"pname": "asm-attrs"
63+
},
6264
"dependencies": [],
6365
"repository_homepage_url": "https://repo1.maven.org/maven2/asm/asm-attrs/1.5.3/",
6466
"repository_download_url": "https://repo1.maven.org/maven2/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar",

‎tests/packagedcode/data/m2/asm/asm-parent/3.0/asm-parent-3.0.pom.package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
"file_references": [],
5959
"is_private": false,
6060
"is_virtual": false,
61-
"extra_data": {},
61+
"extra_data": {
62+
"pname": "ASM"
63+
},
6264
"dependencies": [
6365
{
6466
"purl": "pkg:maven/asm/asm@3.0",

‎tests/packagedcode/data/m2/asm/asm/1.5.3/asm-1.5.3.pom.package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
"file_references": [],
5959
"is_private": false,
6060
"is_virtual": false,
61-
"extra_data": {},
61+
"extra_data": {
62+
"pname": "asm"
63+
},
6264
"dependencies": [],
6365
"repository_homepage_url": "https://repo1.maven.org/maven2/asm/asm/1.5.3/",
6466
"repository_download_url": "https://repo1.maven.org/maven2/asm/asm/1.5.3/asm-1.5.3.jar",

0 commit comments

Comments
 (0)