Skip to content

Commit 9867a71

Browse files
Regen tests to fix CI failures
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 5cd97cc commit 9867a71

File tree

3 files changed

+82
-75
lines changed

3 files changed

+82
-75
lines changed

tests/licensedcode/data/plugin_license/unknown_intro/scan-unknown-intro-with-imperfect-matches.expected.json

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"license_detections": [
33
{
4-
"identifier": "mit-3c947379-4257-acb2-bf21-5f93f7de0076",
4+
"identifier": "mit-d06b13fa-2fc0-30c6-d438-bd840aa59649",
55
"license_expression": "mit",
66
"license_expression_spdx": "MIT",
77
"detection_count": 1,
@@ -46,16 +46,32 @@
4646
"license_expression_spdx": "MIT",
4747
"from_file": "scan-unknown-intro-with-imperfect-matches/LICENSE.md",
4848
"start_line": 11,
49+
"end_line": 11,
50+
"matcher": "2-aho",
51+
"score": 100.0,
52+
"matched_length": 2,
53+
"match_coverage": 100.0,
54+
"rule_relevance": 100,
55+
"rule_identifier": "mit_14.RULE",
56+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_14.RULE",
57+
"matched_text": "MIT License</",
58+
"matched_text_diagnostics": "MIT License</"
59+
},
60+
{
61+
"license_expression": "mit",
62+
"license_expression_spdx": "MIT",
63+
"from_file": "scan-unknown-intro-with-imperfect-matches/LICENSE.md",
64+
"start_line": 13,
4965
"end_line": 13,
5066
"matcher": "2-aho",
5167
"score": 100.0,
52-
"matched_length": 3,
68+
"matched_length": 2,
5369
"match_coverage": 100.0,
5470
"rule_relevance": 100,
55-
"rule_identifier": "mit_31.RULE",
56-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_31.RULE",
57-
"matched_text": "License</a></li></ul>\n\n<h2>MIT License</",
58-
"matched_text_diagnostics": "License</a></li></ul>\n\n<h2>MIT License</"
71+
"rule_identifier": "mit_14.RULE",
72+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_14.RULE",
73+
"matched_text": "MIT License</",
74+
"matched_text_diagnostics": "MIT License</"
5975
},
6076
{
6177
"license_expression": "mit",
@@ -124,16 +140,32 @@
124140
"spdx_license_expression": "MIT",
125141
"from_file": "scan-unknown-intro-with-imperfect-matches/LICENSE.md",
126142
"start_line": 11,
143+
"end_line": 11,
144+
"matcher": "2-aho",
145+
"score": 100.0,
146+
"matched_length": 2,
147+
"match_coverage": 100.0,
148+
"rule_relevance": 100,
149+
"rule_identifier": "mit_14.RULE",
150+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_14.RULE",
151+
"matched_text": "MIT License</",
152+
"matched_text_diagnostics": "MIT License</"
153+
},
154+
{
155+
"license_expression": "mit",
156+
"spdx_license_expression": "MIT",
157+
"from_file": "scan-unknown-intro-with-imperfect-matches/LICENSE.md",
158+
"start_line": 13,
127159
"end_line": 13,
128160
"matcher": "2-aho",
129161
"score": 100.0,
130-
"matched_length": 3,
162+
"matched_length": 2,
131163
"match_coverage": 100.0,
132164
"rule_relevance": 100,
133-
"rule_identifier": "mit_31.RULE",
134-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_31.RULE",
135-
"matched_text": "License</a></li></ul>\n\n<h2>MIT License</",
136-
"matched_text_diagnostics": "License</a></li></ul>\n\n<h2>MIT License</"
165+
"rule_identifier": "mit_14.RULE",
166+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_14.RULE",
167+
"matched_text": "MIT License</",
168+
"matched_text_diagnostics": "MIT License</"
137169
},
138170
{
139171
"license_expression": "mit",
@@ -155,11 +187,11 @@
155187
"detection_log": [
156188
"unknown-intro-followed-by-match"
157189
],
158-
"identifier": "mit-3c947379-4257-acb2-bf21-5f93f7de0076"
190+
"identifier": "mit-d06b13fa-2fc0-30c6-d438-bd840aa59649"
159191
}
160192
],
161193
"license_clues": [],
162-
"percentage_of_license_text": 89.06,
194+
"percentage_of_license_text": 89.58,
163195
"scan_errors": []
164196
}
165197
]

tests/packagedcode/data/debian/copyright/debian-2019-11-15/main/libx/libxslt/stable_copyright-detailed.expected.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ license_detections:
1313
start_line: 15
1414
end_line: 34
1515
matcher: 2-aho
16-
score: '100.0'
16+
score: '99.0'
1717
matched_length: '199'
1818
match_coverage: '100.0'
19-
rule_relevance: 100
20-
rule_identifier: x11-xconsortium-veillard.LICENSE
21-
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/x11-xconsortium-veillard.LICENSE
19+
rule_relevance: 99
20+
rule_identifier: x11-xconsortium-veillard_3.RULE
21+
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/x11-xconsortium-veillard_3.RULE
2222
matched_text: |
2323
Permission is hereby granted, free of charge, to any person obtaining a copy
2424
of this software and associated documentation files (the "Software"), to deal
@@ -40,7 +40,7 @@ license_detections:
4040
Except as contained in this notice, the name of Daniel Veillard shall not
4141
be used in advertising or otherwise to promote the sale, use or other deal-
4242
ings in this Software without prior written authorization from him.
43-
identifier: x11_xconsortium_veillard-b2601908-f03c-335c-5bbd-e72dc065c901
43+
identifier: x11_xconsortium_veillard-c8cd46c3-d1e8-41fb-1343-c8f95ccec0ef
4444
- license_expression: x11-xconsortium
4545
license_expression_spdx: X11
4646
matches:

0 commit comments

Comments
 (0)