Skip to content

Commit fa8fcfc

Browse files
committed
Update Failing tests with SCANCODE_REGEN_TEST_FIXTURES
Signed-off-by: swastik <swastkk@gmail.com>
1 parent fdca15e commit fa8fcfc

301 files changed

Lines changed: 2491 additions & 2157 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"datasource_ids": [
8585
"maven_pom"
8686
],
87+
"license_clarity": [],
8788
"purl": "pkg:maven/javax.persistence/persistence-api@1.0"
8889
},
8990
{
@@ -185,6 +186,7 @@
185186
"datasource_ids": [
186187
"npm_package_json"
187188
],
189+
"license_clarity": [],
188190
"purl": "pkg:npm/grunt-esvm@3.2.8"
189191
},
190192
{
@@ -262,6 +264,7 @@
262264
"datasource_ids": [
263265
"npm_package_json"
264266
],
267+
"license_clarity": [],
265268
"purl": "pkg:npm/angular-compare-validator@0.1.1"
266269
}
267270
],

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212
"--package": true
1313
},
1414
"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": "3.0.0",
15+
"output_format_version": "3.1.0",
1616
"message": null,
1717
"errors": [],
1818
"warnings": [],
1919
"extra_data": {
2020
"system_environment": {
21-
"operating_system": "linux",
21+
"operating_system": "mac",
2222
"cpu_architecture": "64",
23-
"platform": "Linux-5.15.0-89-generic-x86_64-with-glibc2.29",
24-
"platform_version": "#99~20.04.1-Ubuntu SMP Thu Nov 2 15:16:47 UTC 2023",
25-
"python_version": "3.8.10 (default, Nov 22 2023, 10:22:35) \n[GCC 9.4.0]"
23+
"platform": "macOS-14.5-x86_64-i386-64bit",
24+
"platform_version": "Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103",
25+
"python_version": "3.12.3 (main, Apr 9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)]"
2626
},
27-
"spdx_license_list_version": "3.22",
27+
"spdx_license_list_version": "3.23",
2828
"files_count": 4
2929
}
3030
}
@@ -116,6 +116,7 @@
116116
"datasource_ids": [
117117
"maven_pom"
118118
],
119+
"license_clarity": [],
119120
"purl": "pkg:maven/javax.persistence/persistence-api@1.0"
120121
},
121122
{
@@ -217,6 +218,7 @@
217218
"datasource_ids": [
218219
"npm_package_json"
219220
],
221+
"license_clarity": [],
220222
"purl": "pkg:npm/grunt-esvm@3.2.8"
221223
},
222224
{
@@ -294,6 +296,7 @@
294296
"datasource_ids": [
295297
"npm_package_json"
296298
],
299+
"license_clarity": [],
297300
"purl": "pkg:npm/angular-compare-validator@0.1.1"
298301
}
299302
]

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ headers:
2121
for any legal advice.
2222
ScanCode is a free software code scanning tool from nexB Inc. and others.
2323
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
24-
output_format_version: 3.0.0
24+
output_format_version: 3.1.0
2525
message:
2626
errors: []
2727
warnings: []
2828
extra_data:
2929
system_environment:
30-
operating_system: linux
30+
operating_system: mac
3131
cpu_architecture: 64
32-
platform: Linux-5.15.0-89-generic-x86_64-with-glibc2.29
33-
platform_version: '#99~20.04.1-Ubuntu SMP Thu Nov 2 15:16:47 UTC 2023'
34-
python_version: "3.8.10 (default, Nov 22 2023, 10:22:35) \n[GCC 9.4.0]"
35-
spdx_license_list_version: '3.22'
32+
platform: macOS-14.5-x86_64-i386-64bit
33+
platform_version: 'Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103'
34+
python_version: 3.12.3 (main, Apr 9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)]
35+
spdx_license_list_version: '3.23'
3636
files_count: 4
3737
summary:
3838
declared_license_expression: apache-2.0 AND cddl-1.0 AND mit
@@ -139,6 +139,7 @@ packages:
139139
- manifests/maven/persistence-api-1.0.pom
140140
datasource_ids:
141141
- maven_pom
142+
license_clarity: []
142143
purl: pkg:maven/javax.persistence/persistence-api@1.0
143144
- type: npm
144145
namespace:
@@ -224,6 +225,7 @@ packages:
224225
- manifests/npm-license-mapping/package.json
225226
datasource_ids:
226227
- npm_package_json
228+
license_clarity: []
227229
purl: pkg:npm/grunt-esvm@3.2.8
228230
- type: npm
229231
namespace:
@@ -289,6 +291,7 @@ packages:
289291
- manifests/npm-license-string/package.json
290292
datasource_ids:
291293
- npm_package_json
294+
license_clarity: []
292295
purl: pkg:npm/angular-compare-validator@0.1.1
293296
dependencies:
294297
- purl: pkg:npm/bluebird

tests/formattedcode/data/json/simple-expected.jsonlines

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
"--json-lines": "<file>"
1010
},
1111
"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.",
12-
"output_format_version": "3.0.0",
12+
"output_format_version": "3.1.0",
1313
"message": null,
1414
"errors": [],
1515
"warnings": [],
1616
"extra_data": {
1717
"system_environment": {
1818
"operating_system": "mac",
1919
"cpu_architecture": "64",
20-
"platform": "macOS-13.2.1-x86_64-i386-64bit",
21-
"platform_version": "Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103",
22-
"python_version": "3.10.6 (main, Aug 30 2022, 05:12:36) [Clang 13.1.6 (clang-1316.0.21.2.5)]"
20+
"platform": "macOS-14.5-x86_64-i386-64bit",
21+
"platform_version": "Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103",
22+
"python_version": "3.12.3 (main, Apr 9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)]"
2323
},
24-
"spdx_license_list_version": "3.20",
24+
"spdx_license_list_version": "3.23",
2525
"files_count": 1
2626
}
2727
}

tests/formattedcode/data/yaml/package-and-licenses-expected.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ headers:
2121
for any legal advice.
2222
ScanCode is a free software code scanning tool from nexB Inc. and others.
2323
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
24-
output_format_version: 3.0.0
24+
output_format_version: 3.1.0
2525
message:
2626
errors: []
2727
warnings: []
2828
extra_data:
2929
system_environment:
30-
operating_system: linux
30+
operating_system: mac
3131
cpu_architecture: 64
32-
platform: Linux-5.15.0-89-generic-x86_64-with-glibc2.29
33-
platform_version: '#99~20.04.1-Ubuntu SMP Thu Nov 2 15:16:47 UTC 2023'
34-
python_version: "3.8.10 (default, Nov 22 2023, 10:22:35) \n[GCC 9.4.0]"
35-
spdx_license_list_version: '3.22'
32+
platform: macOS-14.5-x86_64-i386-64bit
33+
platform_version: 'Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103'
34+
python_version: 3.12.3 (main, Apr 9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)]
35+
spdx_license_list_version: '3.23'
3636
files_count: 4
3737
summary:
3838
declared_license_expression: apache-2.0
@@ -119,6 +119,7 @@ packages:
119119
- package-and-licenses/setup.cfg
120120
datasource_ids:
121121
- pypi_setup_cfg
122+
license_clarity: []
122123
purl: pkg:pypi/codebase
123124
dependencies: []
124125
license_detections:

tests/formattedcode/data/yaml/simple-expected.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ headers:
1414
for any legal advice.
1515
ScanCode is a free software code scanning tool from nexB Inc. and others.
1616
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
17-
output_format_version: 3.0.0
17+
output_format_version: 3.1.0
1818
message:
1919
errors: []
2020
warnings: []
2121
extra_data:
2222
system_environment:
2323
operating_system: mac
2424
cpu_architecture: 64
25-
platform: macOS-13.2.1-x86_64-i386-64bit
26-
platform_version: 'Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103'
27-
python_version: 3.10.6 (main, Aug 30 2022, 05:12:36) [Clang 13.1.6 (clang-1316.0.21.2.5)]
28-
spdx_license_list_version: '3.20'
25+
platform: macOS-14.5-x86_64-i386-64bit
26+
platform_version: 'Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103'
27+
python_version: 3.12.3 (main, Apr 9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)]
28+
spdx_license_list_version: '3.23'
2929
files_count: 1
3030
packages: []
3131
dependencies: []

tests/licensedcode/data/licenses_reference_reporting/scan-matched-text-with-reference.expected.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"datasource_ids": [
8181
"npm_package_json"
8282
],
83+
"license_clarity": [],
8384
"purl": "pkg:npm/npm@2.13.5"
8485
}
8586
],

tests/licensedcode/data/licenses_reference_reporting/scan-with-reference.expected.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"datasource_ids": [
8181
"npm_package_json"
8282
],
83+
"license_clarity": [],
8384
"purl": "pkg:npm/npm@2.13.5"
8485
}
8586
],

tests/packagedcode/data/about/aboutfiles.expected.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"datasource_ids": [
7676
"about_file"
7777
],
78+
"license_clarity": [],
7879
"purl": "pkg:about/apipkg@1.4"
7980
},
8081
{
@@ -164,6 +165,7 @@
164165
"datasource_ids": [
165166
"about_file"
166167
],
168+
"license_clarity": [],
167169
"purl": "pkg:about/appdirs@1.4.3"
168170
}
169171
],

tests/packagedcode/data/about/apipkg.ABOUT-expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
"license_expression_spdx": "MIT",
4040
"matches": [
4141
{
42-
"score": 100.0,
42+
"license_expression": "mit",
43+
"spdx_license_expression": "MIT",
44+
"from_file": null,
4345
"start_line": 1,
4446
"end_line": 1,
45-
"from_file": null,
47+
"matcher": "1-spdx-id",
48+
"score": 100.0,
4649
"matched_length": 1,
4750
"match_coverage": 100.0,
48-
"matcher": "1-spdx-id",
49-
"license_expression": "mit",
50-
"spdx_license_expression": "MIT",
51-
"rule_identifier": "spdx-license-identifier-mit-1b937028f397e2c5fe4eb6a0abd781ab80f9eeff",
5251
"rule_relevance": 100,
52+
"rule_identifier": "spdx-license-identifier-mit-1b937028f397e2c5fe4eb6a0abd781ab80f9eeff",
5353
"rule_url": null,
5454
"matched_text": "mit"
5555
}

0 commit comments

Comments
 (0)