Skip to content

Commit 84d9650

Browse files
Add ignored reference examples to tests
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 1af3877 commit 84d9650

File tree

8 files changed

+1411
-0
lines changed

8 files changed

+1411
-0
lines changed
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
{
2+
"license_detections": [
3+
{
4+
"identifier": "lgpl_2_0_plus_and_gpl_1_0_plus-0a83bc4e-d93a-78cb-c0f0-62a499fed37f",
5+
"license_expression": "lgpl-2.0-plus AND gpl-1.0-plus",
6+
"license_expression_spdx": "LGPL-2.0-or-later AND GPL-1.0-or-later",
7+
"detection_count": 1,
8+
"detection_log": [],
9+
"sample_matches": [
10+
{
11+
"license_expression": "lgpl-2.0-plus",
12+
"license_expression_spdx": "LGPL-2.0-or-later",
13+
"from_file": "lgpl-gpl/LICENSE",
14+
"start_line": 1,
15+
"end_line": 1,
16+
"matcher": "2-aho",
17+
"score": 99.0,
18+
"matched_length": 2,
19+
"match_coverage": 100.0,
20+
"rule_relevance": 99,
21+
"rule_identifier": "lgpl_33.RULE",
22+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_33.RULE",
23+
"matched_text": "lgpl license",
24+
"matched_text_diagnostics": "lgpl license"
25+
},
26+
{
27+
"license_expression": "gpl-1.0-plus",
28+
"license_expression_spdx": "GPL-1.0-or-later",
29+
"from_file": "lgpl-gpl/LICENSE",
30+
"start_line": 1,
31+
"end_line": 3,
32+
"matcher": "2-aho",
33+
"score": 100.0,
34+
"matched_length": 2,
35+
"match_coverage": 100.0,
36+
"rule_relevance": 100,
37+
"rule_identifier": "gpl_72.RULE",
38+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl_72.RULE",
39+
"matched_text": "lgpl license\n\ngpl license",
40+
"matched_text_diagnostics": "license\n\ngpl"
41+
}
42+
]
43+
},
44+
{
45+
"identifier": "lgpl_2_1_plus-16a4d776-3936-fefa-b308-9ab5cdf01851",
46+
"license_expression": "lgpl-2.1-plus",
47+
"license_expression_spdx": "LGPL-2.1-or-later",
48+
"detection_count": 1,
49+
"detection_log": [],
50+
"sample_matches": [
51+
{
52+
"license_expression": "lgpl-2.1-plus",
53+
"license_expression_spdx": "LGPL-2.1-or-later",
54+
"from_file": "lgpl-gpl/reference.py",
55+
"start_line": 1,
56+
"end_line": 2,
57+
"matcher": "1-hash",
58+
"score": 100.0,
59+
"matched_length": 21,
60+
"match_coverage": 100.0,
61+
"rule_relevance": 100,
62+
"rule_identifier": "lgpl-2.1-plus_51.RULE",
63+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.1-plus_51.RULE",
64+
"matched_text": "# This software is distributed under the terms of the GNU Lesser General\n# Public Licence (LGPL) See LICENSE.txt for further details",
65+
"matched_text_diagnostics": "This software is distributed under the terms of the GNU Lesser General\n# Public Licence (LGPL) See LICENSE.txt for further details"
66+
}
67+
]
68+
}
69+
],
70+
"files": [
71+
{
72+
"path": "LICENSE",
73+
"type": "file",
74+
"detected_license_expression": "lgpl-2.0-plus AND gpl-1.0-plus",
75+
"detected_license_expression_spdx": "LGPL-2.0-or-later AND GPL-1.0-or-later",
76+
"license_detections": [
77+
{
78+
"license_expression": "lgpl-2.0-plus AND gpl-1.0-plus",
79+
"license_expression_spdx": "LGPL-2.0-or-later AND GPL-1.0-or-later",
80+
"matches": [
81+
{
82+
"license_expression": "lgpl-2.0-plus",
83+
"spdx_license_expression": "LGPL-2.0-or-later",
84+
"from_file": "lgpl-gpl/LICENSE",
85+
"start_line": 1,
86+
"end_line": 1,
87+
"matcher": "2-aho",
88+
"score": 99.0,
89+
"matched_length": 2,
90+
"match_coverage": 100.0,
91+
"rule_relevance": 99,
92+
"rule_identifier": "lgpl_33.RULE",
93+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_33.RULE",
94+
"matched_text": "lgpl license",
95+
"matched_text_diagnostics": "lgpl license"
96+
},
97+
{
98+
"license_expression": "gpl-1.0-plus",
99+
"spdx_license_expression": "GPL-1.0-or-later",
100+
"from_file": "lgpl-gpl/LICENSE",
101+
"start_line": 1,
102+
"end_line": 3,
103+
"matcher": "2-aho",
104+
"score": 100.0,
105+
"matched_length": 2,
106+
"match_coverage": 100.0,
107+
"rule_relevance": 100,
108+
"rule_identifier": "gpl_72.RULE",
109+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl_72.RULE",
110+
"matched_text": "lgpl license\n\ngpl license",
111+
"matched_text_diagnostics": "license\n\ngpl"
112+
}
113+
],
114+
"detection_log": [],
115+
"identifier": "lgpl_2_0_plus_and_gpl_1_0_plus-0a83bc4e-d93a-78cb-c0f0-62a499fed37f"
116+
}
117+
],
118+
"license_clues": [],
119+
"percentage_of_license_text": 75.0,
120+
"scan_errors": []
121+
},
122+
{
123+
"path": "reference.py",
124+
"type": "file",
125+
"detected_license_expression": "lgpl-2.1-plus",
126+
"detected_license_expression_spdx": "LGPL-2.1-or-later",
127+
"license_detections": [
128+
{
129+
"license_expression": "lgpl-2.1-plus",
130+
"license_expression_spdx": "LGPL-2.1-or-later",
131+
"matches": [
132+
{
133+
"license_expression": "lgpl-2.1-plus",
134+
"spdx_license_expression": "LGPL-2.1-or-later",
135+
"from_file": "lgpl-gpl/reference.py",
136+
"start_line": 1,
137+
"end_line": 2,
138+
"matcher": "1-hash",
139+
"score": 100.0,
140+
"matched_length": 21,
141+
"match_coverage": 100.0,
142+
"rule_relevance": 100,
143+
"rule_identifier": "lgpl-2.1-plus_51.RULE",
144+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.1-plus_51.RULE",
145+
"matched_text": "# This software is distributed under the terms of the GNU Lesser General\n# Public Licence (LGPL) See LICENSE.txt for further details",
146+
"matched_text_diagnostics": "This software is distributed under the terms of the GNU Lesser General\n# Public Licence (LGPL) See LICENSE.txt for further details"
147+
}
148+
],
149+
"detection_log": [],
150+
"identifier": "lgpl_2_1_plus-16a4d776-3936-fefa-b308-9ab5cdf01851"
151+
}
152+
],
153+
"license_clues": [],
154+
"percentage_of_license_text": 100.0,
155+
"scan_errors": []
156+
}
157+
]
158+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
lgpl license
2+
3+
gpl license
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This software is distributed under the terms of the GNU Lesser General
2+
# Public Licence (LGPL) See LICENSE.txt for further details
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
{
2+
"license_detections": [
3+
{
4+
"identifier": "lgpl_2_0_plus_and_gpl_1_0_plus-0a83bc4e-d93a-78cb-c0f0-62a499fed37f",
5+
"license_expression": "lgpl-2.0-plus AND gpl-1.0-plus",
6+
"license_expression_spdx": "LGPL-2.0-or-later AND GPL-1.0-or-later",
7+
"detection_count": 1,
8+
"detection_log": [],
9+
"sample_matches": [
10+
{
11+
"license_expression": "lgpl-2.0-plus",
12+
"license_expression_spdx": "LGPL-2.0-or-later",
13+
"from_file": "lgpl-gpl/LICENSE",
14+
"start_line": 1,
15+
"end_line": 1,
16+
"matcher": "2-aho",
17+
"score": 99.0,
18+
"matched_length": 2,
19+
"match_coverage": 100.0,
20+
"rule_relevance": 99,
21+
"rule_identifier": "lgpl_33.RULE",
22+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_33.RULE",
23+
"matched_text": "lgpl license",
24+
"matched_text_diagnostics": "lgpl license"
25+
},
26+
{
27+
"license_expression": "gpl-1.0-plus",
28+
"license_expression_spdx": "GPL-1.0-or-later",
29+
"from_file": "lgpl-gpl/LICENSE",
30+
"start_line": 1,
31+
"end_line": 3,
32+
"matcher": "2-aho",
33+
"score": 100.0,
34+
"matched_length": 2,
35+
"match_coverage": 100.0,
36+
"rule_relevance": 100,
37+
"rule_identifier": "gpl_72.RULE",
38+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl_72.RULE",
39+
"matched_text": "lgpl license\n\ngpl license",
40+
"matched_text_diagnostics": "license\n\ngpl"
41+
}
42+
]
43+
},
44+
{
45+
"identifier": "lgpl_2_1_plus-16a4d776-3936-fefa-b308-9ab5cdf01851",
46+
"license_expression": "lgpl-2.1-plus",
47+
"license_expression_spdx": "LGPL-2.1-or-later",
48+
"detection_count": 1,
49+
"detection_log": [],
50+
"sample_matches": [
51+
{
52+
"license_expression": "lgpl-2.1-plus",
53+
"license_expression_spdx": "LGPL-2.1-or-later",
54+
"from_file": "lgpl-gpl/reference.py",
55+
"start_line": 1,
56+
"end_line": 2,
57+
"matcher": "1-hash",
58+
"score": 100.0,
59+
"matched_length": 21,
60+
"match_coverage": 100.0,
61+
"rule_relevance": 100,
62+
"rule_identifier": "lgpl-2.1-plus_51.RULE",
63+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.1-plus_51.RULE",
64+
"matched_text": "# This software is distributed under the terms of the GNU Lesser General\n# Public Licence (LGPL) See LICENSE.txt for further details",
65+
"matched_text_diagnostics": "This software is distributed under the terms of the GNU Lesser General\n# Public Licence (LGPL) See LICENSE.txt for further details"
66+
}
67+
]
68+
}
69+
],
70+
"files": [
71+
{
72+
"path": "LICENSE",
73+
"type": "file",
74+
"detected_license_expression": "lgpl-2.0-plus AND gpl-1.0-plus",
75+
"detected_license_expression_spdx": "LGPL-2.0-or-later AND GPL-1.0-or-later",
76+
"license_detections": [
77+
{
78+
"license_expression": "lgpl-2.0-plus AND gpl-1.0-plus",
79+
"license_expression_spdx": "LGPL-2.0-or-later AND GPL-1.0-or-later",
80+
"matches": [
81+
{
82+
"license_expression": "lgpl-2.0-plus",
83+
"spdx_license_expression": "LGPL-2.0-or-later",
84+
"from_file": "lgpl-gpl/LICENSE",
85+
"start_line": 1,
86+
"end_line": 1,
87+
"matcher": "2-aho",
88+
"score": 99.0,
89+
"matched_length": 2,
90+
"match_coverage": 100.0,
91+
"rule_relevance": 99,
92+
"rule_identifier": "lgpl_33.RULE",
93+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_33.RULE",
94+
"matched_text": "lgpl license",
95+
"matched_text_diagnostics": "lgpl license"
96+
},
97+
{
98+
"license_expression": "gpl-1.0-plus",
99+
"spdx_license_expression": "GPL-1.0-or-later",
100+
"from_file": "lgpl-gpl/LICENSE",
101+
"start_line": 1,
102+
"end_line": 3,
103+
"matcher": "2-aho",
104+
"score": 100.0,
105+
"matched_length": 2,
106+
"match_coverage": 100.0,
107+
"rule_relevance": 100,
108+
"rule_identifier": "gpl_72.RULE",
109+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl_72.RULE",
110+
"matched_text": "lgpl license\n\ngpl license",
111+
"matched_text_diagnostics": "license\n\ngpl"
112+
}
113+
],
114+
"detection_log": [],
115+
"identifier": "lgpl_2_0_plus_and_gpl_1_0_plus-0a83bc4e-d93a-78cb-c0f0-62a499fed37f"
116+
}
117+
],
118+
"license_clues": [],
119+
"percentage_of_license_text": 75.0,
120+
"scan_errors": []
121+
},
122+
{
123+
"path": "reference.py",
124+
"type": "file",
125+
"detected_license_expression": "lgpl-2.1-plus",
126+
"detected_license_expression_spdx": "LGPL-2.1-or-later",
127+
"license_detections": [
128+
{
129+
"license_expression": "lgpl-2.1-plus",
130+
"license_expression_spdx": "LGPL-2.1-or-later",
131+
"matches": [
132+
{
133+
"license_expression": "lgpl-2.1-plus",
134+
"spdx_license_expression": "LGPL-2.1-or-later",
135+
"from_file": "lgpl-gpl/reference.py",
136+
"start_line": 1,
137+
"end_line": 2,
138+
"matcher": "1-hash",
139+
"score": 100.0,
140+
"matched_length": 21,
141+
"match_coverage": 100.0,
142+
"rule_relevance": 100,
143+
"rule_identifier": "lgpl-2.1-plus_51.RULE",
144+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.1-plus_51.RULE",
145+
"matched_text": "# This software is distributed under the terms of the GNU Lesser General\n# Public Licence (LGPL) See LICENSE.txt for further details",
146+
"matched_text_diagnostics": "This software is distributed under the terms of the GNU Lesser General\n# Public Licence (LGPL) See LICENSE.txt for further details"
147+
}
148+
],
149+
"detection_log": [],
150+
"identifier": "lgpl_2_1_plus-16a4d776-3936-fefa-b308-9ab5cdf01851"
151+
}
152+
],
153+
"license_clues": [],
154+
"percentage_of_license_text": 100.0,
155+
"scan_errors": []
156+
}
157+
]
158+
}

0 commit comments

Comments
 (0)