Skip to content

Commit 0dfb0ca

Browse files
Add updated test expectations
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 570c43f commit 0dfb0ca

File tree

3 files changed

+127
-240
lines changed

3 files changed

+127
-240
lines changed

tests/licensedcode/data/plugin_license/scan/ffmpeg-license.expected.json

Lines changed: 54 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
"detection_count": 1,
2222
"detection_log": []
2323
},
24-
{
25-
"identifier": "gpl_2_0_and_lgpl_2_0_plus_and_proprietary_license-45a8a75a-5b7e-5dbe-21f8-412756fac148",
26-
"license_expression": "gpl-2.0 AND lgpl-2.0-plus AND proprietary-license",
27-
"detection_count": 1,
28-
"detection_log": []
29-
},
3024
{
3125
"identifier": "ijg_and_mit-e50613dc-8a09-65cc-c498-5d9527795382",
3226
"license_expression": "ijg AND mit",
@@ -52,8 +46,8 @@
5246
{
5347
"path": "ffmpeg-LICENSE.md",
5448
"type": "file",
55-
"detected_license_expression": "(lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus) AND gpl-1.0-plus AND (lgpl-3.0 AND lgpl-3.0-plus AND (lgpl-3.0 AND gpl-3.0)) AND (ijg AND mit) AND (gpl-2.0 AND apache-2.0 AND lgpl-3.0-plus) AND (gpl-2.0 AND lgpl-2.0-plus AND proprietary-license)",
56-
"detected_license_expression_spdx": "(LGPL-2.1-or-later AND LicenseRef-scancode-other-permissive AND GPL-2.0-or-later) AND GPL-1.0-or-later AND (LGPL-3.0-only AND LGPL-3.0-or-later AND (LGPL-3.0-only AND GPL-3.0-only)) AND (IJG AND MIT) AND (GPL-2.0-only AND Apache-2.0 AND LGPL-3.0-or-later) AND (GPL-2.0-only AND LGPL-2.0-or-later AND LicenseRef-scancode-proprietary-license)",
49+
"detected_license_expression": "(lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus) AND gpl-1.0-plus AND (lgpl-3.0 AND lgpl-3.0-plus AND (lgpl-3.0 AND gpl-3.0)) AND (ijg AND mit) AND (gpl-2.0 AND apache-2.0 AND lgpl-3.0-plus)",
50+
"detected_license_expression_spdx": "(LGPL-2.1-or-later AND LicenseRef-scancode-other-permissive AND GPL-2.0-or-later) AND GPL-1.0-or-later AND (LGPL-3.0-only AND LGPL-3.0-or-later AND (LGPL-3.0-only AND GPL-3.0-only)) AND (IJG AND MIT) AND (GPL-2.0-only AND Apache-2.0 AND LGPL-3.0-or-later)",
5751
"license_detections": [
5852
{
5953
"license_expression": "lgpl-2.1-plus AND other-permissive AND gpl-2.0-plus",
@@ -257,68 +251,62 @@
257251
],
258252
"detection_log": [],
259253
"identifier": "gpl_2_0_and_apache_2_0_and_lgpl_3_0_plus-c2393e5a-e531-304f-58a9-a6431d46d214"
254+
}
255+
],
256+
"license_clues": [
257+
{
258+
"score": 100.0,
259+
"start_line": 100,
260+
"end_line": 100,
261+
"matched_length": 1,
262+
"match_coverage": 100.0,
263+
"matcher": "2-aho",
264+
"license_expression": "gpl-2.0",
265+
"rule_identifier": "gpl-2.0_bare_single_word.RULE",
266+
"rule_relevance": 100,
267+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
268+
"matched_text": "GPLv2"
260269
},
261270
{
262-
"license_expression": "gpl-2.0 AND lgpl-2.0-plus AND proprietary-license",
263-
"matches": [
264-
{
265-
"score": 100.0,
266-
"start_line": 100,
267-
"end_line": 100,
268-
"matched_length": 1,
269-
"match_coverage": 100.0,
270-
"matcher": "2-aho",
271-
"license_expression": "gpl-2.0",
272-
"rule_identifier": "gpl-2.0_bare_single_word.RULE",
273-
"rule_relevance": 100,
274-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_bare_single_word.RULE",
275-
"matched_text": "GPLv2"
276-
},
277-
{
278-
"score": 75.0,
279-
"start_line": 101,
280-
"end_line": 101,
281-
"matched_length": 1,
282-
"match_coverage": 100.0,
283-
"matcher": "2-aho",
284-
"license_expression": "lgpl-2.0-plus",
285-
"rule_identifier": "lgpl_bare_single_word.RULE",
286-
"rule_relevance": 75,
287-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
288-
"matched_text": "LGPL."
289-
},
290-
{
291-
"score": 100.0,
292-
"start_line": 102,
293-
"end_line": 102,
294-
"matched_length": 2,
295-
"match_coverage": 100.0,
296-
"matcher": "2-aho",
297-
"license_expression": "proprietary-license",
298-
"rule_identifier": "proprietary-license_490.RULE",
299-
"rule_relevance": 100,
300-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/proprietary-license_490.RULE",
301-
"matched_text": "enable-nonfree"
302-
},
303-
{
304-
"score": 75.0,
305-
"start_line": 104,
306-
"end_line": 104,
307-
"matched_length": 1,
308-
"match_coverage": 100.0,
309-
"matcher": "2-aho",
310-
"license_expression": "lgpl-2.0-plus",
311-
"rule_identifier": "lgpl_bare_single_word.RULE",
312-
"rule_relevance": 75,
313-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
314-
"matched_text": "LGPL"
315-
}
316-
],
317-
"detection_log": [],
318-
"identifier": "gpl_2_0_and_lgpl_2_0_plus_and_proprietary_license-45a8a75a-5b7e-5dbe-21f8-412756fac148"
271+
"score": 75.0,
272+
"start_line": 101,
273+
"end_line": 101,
274+
"matched_length": 1,
275+
"match_coverage": 100.0,
276+
"matcher": "2-aho",
277+
"license_expression": "lgpl-2.0-plus",
278+
"rule_identifier": "lgpl_bare_single_word.RULE",
279+
"rule_relevance": 75,
280+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
281+
"matched_text": "LGPL."
282+
},
283+
{
284+
"score": 100.0,
285+
"start_line": 102,
286+
"end_line": 102,
287+
"matched_length": 2,
288+
"match_coverage": 100.0,
289+
"matcher": "2-aho",
290+
"license_expression": "proprietary-license",
291+
"rule_identifier": "proprietary-license_490.RULE",
292+
"rule_relevance": 100,
293+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/proprietary-license_490.RULE",
294+
"matched_text": "enable-nonfree"
295+
},
296+
{
297+
"score": 75.0,
298+
"start_line": 104,
299+
"end_line": 104,
300+
"matched_length": 1,
301+
"match_coverage": 100.0,
302+
"matcher": "2-aho",
303+
"license_expression": "lgpl-2.0-plus",
304+
"rule_identifier": "lgpl_bare_single_word.RULE",
305+
"rule_relevance": 75,
306+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_bare_single_word.RULE",
307+
"matched_text": "LGPL"
319308
}
320309
],
321-
"license_clues": [],
322310
"percentage_of_license_text": 34.96,
323311
"scan_errors": []
324312
}

0 commit comments

Comments
 (0)