Skip to content

Commit d3d8c81

Browse files
committed
adds testing files
1 parent 0601179 commit d3d8c81

File tree

2 files changed

+404
-0
lines changed

2 files changed

+404
-0
lines changed

src/test/resources/results.json

Lines changed: 392 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,392 @@
1+
{
2+
"external/inc/json.h": [
3+
{
4+
"component": "scanner.c",
5+
"file": "scanner.c-1.3.3/external/inc/json.h",
6+
"file_hash": "e91a03b850651dd56dd979ba92668a19",
7+
"file_url": "https://api.osskb.org/file_contents/e91a03b850651dd56dd979ba92668a19",
8+
"id": "file",
9+
"latest": "1.3.4",
10+
"licenses": [
11+
{
12+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/BSD-2-Clause.txt",
13+
"copyleft": "no",
14+
"name": "BSD-2-Clause",
15+
"osadl_updated": "2024-11-04T13:45:00+0000",
16+
"patent_hints": "no",
17+
"source": "file_header",
18+
"url": "https://spdx.org/licenses/BSD-2-Clause.html"
19+
},
20+
{
21+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/BSD-2-Clause.txt",
22+
"copyleft": "no",
23+
"name": "BSD-2-Clause",
24+
"osadl_updated": "2024-11-04T13:45:00+0000",
25+
"patent_hints": "no",
26+
"source": "scancode",
27+
"url": "https://spdx.org/licenses/BSD-2-Clause.html"
28+
},
29+
{
30+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-only.txt",
31+
"copyleft": "yes",
32+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
33+
"name": "GPL-2.0-only",
34+
"osadl_updated": "2024-11-04T13:45:00+0000",
35+
"patent_hints": "yes",
36+
"source": "component_declared",
37+
"url": "https://spdx.org/licenses/GPL-2.0-only.html"
38+
}
39+
],
40+
"lines": "all",
41+
"matched": "100%",
42+
"oss_lines": "all",
43+
"purl": [
44+
"pkg:github/scanoss/scanner.c"
45+
],
46+
"release_date": "2021-05-26",
47+
"server": {
48+
"kb_version": {
49+
"daily": "24.11.13",
50+
"monthly": "24.10"
51+
},
52+
"version": "5.4.8"
53+
},
54+
"source_hash": "e91a03b850651dd56dd979ba92668a19",
55+
"status": "pending",
56+
"url": "https://github.com/scanoss/scanner.c",
57+
"url_hash": "2d1700ba496453d779d4987255feb5f2",
58+
"url_stats": {},
59+
"vendor": "scanoss",
60+
"version": "1.3.3"
61+
}
62+
],
63+
"src/cyclonedx.c": [
64+
{
65+
"component": "scanner.c",
66+
"file": "scanner.c-1.3.3/src/cyclonedx.c",
67+
"file_hash": "342bab2935f4817281eb262c23a4bdd9",
68+
"file_url": "https://api.osskb.org/file_contents/342bab2935f4817281eb262c23a4bdd9",
69+
"id": "snippet",
70+
"latest": "1.3.3",
71+
"licenses": [
72+
{
73+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-or-later.txt",
74+
"copyleft": "yes",
75+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
76+
"name": "GPL-2.0-or-later",
77+
"osadl_updated": "2024-11-04T13:45:00+0000",
78+
"patent_hints": "yes",
79+
"source": "scancode",
80+
"url": "https://spdx.org/licenses/GPL-2.0-or-later.html"
81+
},
82+
{
83+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-1.0-or-later.txt",
84+
"copyleft": "yes",
85+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
86+
"name": "GPL-1.0-or-later",
87+
"osadl_updated": "2024-11-04T13:45:00+0000",
88+
"patent_hints": "no",
89+
"source": "scancode",
90+
"url": "https://spdx.org/licenses/GPL-1.0-or-later.html"
91+
},
92+
{
93+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-or-later.txt",
94+
"copyleft": "yes",
95+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
96+
"name": "GPL-2.0-or-later",
97+
"osadl_updated": "2024-11-04T13:45:00+0000",
98+
"patent_hints": "yes",
99+
"source": "file_spdx_tag",
100+
"url": "https://spdx.org/licenses/GPL-2.0-or-later.html"
101+
},
102+
{
103+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-only.txt",
104+
"copyleft": "yes",
105+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
106+
"name": "GPL-2.0-only",
107+
"osadl_updated": "2024-11-04T13:45:00+0000",
108+
"patent_hints": "yes",
109+
"source": "component_declared",
110+
"url": "https://spdx.org/licenses/GPL-2.0-only.html"
111+
}
112+
],
113+
"lines": "9-9,32-96",
114+
"matched": "66%",
115+
"oss_lines": "7-7,29-93",
116+
"purl": [
117+
"pkg:github/scanoss/scanner.c"
118+
],
119+
"release_date": "2021-05-26",
120+
"server": {
121+
"kb_version": {
122+
"daily": "24.11.13",
123+
"monthly": "24.10"
124+
},
125+
"version": "5.4.8"
126+
},
127+
"source_hash": "33bbeaa1f27d48d11a6b81e0d7292562",
128+
"status": "pending",
129+
"url": "https://github.com/scanoss/scanner.c",
130+
"url_hash": "2d1700ba496453d779d4987255feb5f2",
131+
"url_stats": {},
132+
"vendor": "scanoss",
133+
"version": "1.3.3"
134+
}
135+
],
136+
"src/format_utils.c": [
137+
{
138+
"component": "scanner.c",
139+
"file": "scanner.c-1.3.3/src/format_utils.c",
140+
"file_hash": "2691bb31301bbc70edbe7960673b7ca7",
141+
"file_url": "https://api.osskb.org/file_contents/2691bb31301bbc70edbe7960673b7ca7",
142+
"id": "snippet",
143+
"latest": "1.3.3",
144+
"licenses": [
145+
{
146+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-only.txt",
147+
"copyleft": "yes",
148+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
149+
"name": "GPL-2.0-only",
150+
"osadl_updated": "2024-11-04T13:45:00+0000",
151+
"patent_hints": "yes",
152+
"source": "component_declared",
153+
"url": "https://spdx.org/licenses/GPL-2.0-only.html"
154+
}
155+
],
156+
"lines": "8-18,41-294",
157+
"matched": "84%",
158+
"oss_lines": "8-18,48-301",
159+
"purl": [
160+
"pkg:github/scanoss/scanner.c"
161+
],
162+
"release_date": "2021-05-26",
163+
"server": {
164+
"kb_version": {
165+
"daily": "24.11.13",
166+
"monthly": "24.10"
167+
},
168+
"version": "5.4.8"
169+
},
170+
"source_hash": "1b07d074ce3d81ca10990baed612d5cf",
171+
"status": "pending",
172+
"url": "https://github.com/scanoss/scanner.c",
173+
"url_hash": "2d1700ba496453d779d4987255feb5f2",
174+
"url_stats": {},
175+
"vendor": "scanoss",
176+
"version": "1.3.3"
177+
}
178+
],
179+
"src/main.c": [
180+
{
181+
"component": "scanner.c",
182+
"file": "scanner.c-1.3.2/src/main.c",
183+
"file_hash": "30d93e53539a3ca8db58e8f852fc1c30",
184+
"file_url": "https://api.osskb.org/file_contents/30d93e53539a3ca8db58e8f852fc1c30",
185+
"id": "snippet",
186+
"latest": "1.3.2",
187+
"licenses": [
188+
{
189+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-or-later.txt",
190+
"copyleft": "yes",
191+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
192+
"name": "GPL-2.0-or-later",
193+
"osadl_updated": "2024-11-04T13:45:00+0000",
194+
"patent_hints": "yes",
195+
"source": "scancode",
196+
"url": "https://spdx.org/licenses/GPL-2.0-or-later.html"
197+
},
198+
{
199+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-1.0-or-later.txt",
200+
"copyleft": "yes",
201+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
202+
"name": "GPL-1.0-or-later",
203+
"osadl_updated": "2024-11-04T13:45:00+0000",
204+
"patent_hints": "no",
205+
"source": "scancode",
206+
"url": "https://spdx.org/licenses/GPL-1.0-or-later.html"
207+
},
208+
{
209+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-or-later.txt",
210+
"copyleft": "yes",
211+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
212+
"name": "GPL-2.0-or-later",
213+
"osadl_updated": "2024-11-04T13:45:00+0000",
214+
"patent_hints": "yes",
215+
"source": "file_spdx_tag",
216+
"url": "https://spdx.org/licenses/GPL-2.0-or-later.html"
217+
},
218+
{
219+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-only.txt",
220+
"copyleft": "yes",
221+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
222+
"name": "GPL-2.0-only",
223+
"osadl_updated": "2024-11-04T13:45:00+0000",
224+
"patent_hints": "yes",
225+
"source": "component_declared",
226+
"url": "https://spdx.org/licenses/GPL-2.0-only.html"
227+
}
228+
],
229+
"lines": "7-9,50-84,102-161",
230+
"matched": "49%",
231+
"oss_lines": "7-9,45-79,96-155",
232+
"purl": [
233+
"pkg:github/scanoss/scanner.c"
234+
],
235+
"release_date": "2021-05-17",
236+
"server": {
237+
"kb_version": {
238+
"daily": "24.11.13",
239+
"monthly": "24.10"
240+
},
241+
"version": "5.4.8"
242+
},
243+
"source_hash": "54cbf9c7b4ec540b6b9dd08f1c45dd47",
244+
"status": "pending",
245+
"url": "https://github.com/scanoss/scanner.c",
246+
"url_hash": "bcb91cab3d56bc463bb857a257289f1f",
247+
"url_stats": {},
248+
"vendor": "scanoss",
249+
"version": "1.3.2"
250+
}
251+
],
252+
"src/scanner.c": [
253+
{
254+
"component": "scanoss.java",
255+
"file": "testing/data/test-folder-ignore/test-no-ignore/scanner.c",
256+
"file_hash": "f83589f71d6c31a2afb8d374953292f1",
257+
"file_url": "https://api.osskb.org/file_contents/f83589f71d6c31a2afb8d374953292f1",
258+
"id": "file",
259+
"latest": "8598c47",
260+
"licenses": [
261+
{
262+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt",
263+
"copyleft": "no",
264+
"name": "MIT",
265+
"osadl_updated": "2024-11-04T13:45:00+0000",
266+
"patent_hints": "no",
267+
"source": "component_declared",
268+
"url": "https://spdx.org/licenses/MIT.html"
269+
},
270+
{
271+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-or-later.txt",
272+
"copyleft": "yes",
273+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
274+
"name": "GPL-2.0-or-later",
275+
"osadl_updated": "2024-11-04T13:45:00+0000",
276+
"patent_hints": "yes",
277+
"source": "file_spdx_tag",
278+
"url": "https://spdx.org/licenses/GPL-2.0-or-later.html"
279+
},
280+
{
281+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/MIT.txt",
282+
"copyleft": "no",
283+
"name": "MIT",
284+
"osadl_updated": "2024-11-04T13:45:00+0000",
285+
"patent_hints": "no",
286+
"source": "license_file",
287+
"url": "https://spdx.org/licenses/MIT.html"
288+
}
289+
],
290+
"lines": "all",
291+
"matched": "100%",
292+
"oss_lines": "all",
293+
"purl": [
294+
"pkg:github/scanoss/scanoss.java",
295+
"pkg:maven/com.scanoss/scanoss"
296+
],
297+
"release_date": "2024-04-12",
298+
"server": {
299+
"kb_version": {
300+
"daily": "24.11.13",
301+
"monthly": "24.10"
302+
},
303+
"version": "5.4.8"
304+
},
305+
"source_hash": "f83589f71d6c31a2afb8d374953292f1",
306+
"status": "pending",
307+
"url": "https://github.com/scanoss/scanoss.java",
308+
"url_hash": "7197978c914a0cb767cad47aaa1c8276",
309+
"url_stats": {},
310+
"vendor": "scanoss",
311+
"version": "0.7.1"
312+
}
313+
],
314+
"src/spdx.c": [
315+
{
316+
"component": "scanner.c",
317+
"file": "scanner.c-1.3.3/src/spdx.c",
318+
"file_hash": "00693585177fc51a8d16b2b890f39277",
319+
"file_url": "https://api.osskb.org/file_contents/00693585177fc51a8d16b2b890f39277",
320+
"id": "snippet",
321+
"latest": "1.3.4",
322+
"licenses": [
323+
{
324+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-1.0-or-later.txt",
325+
"copyleft": "yes",
326+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
327+
"name": "GPL-1.0-or-later",
328+
"osadl_updated": "2024-11-04T13:45:00+0000",
329+
"patent_hints": "no",
330+
"source": "scancode",
331+
"url": "https://spdx.org/licenses/GPL-1.0-or-later.html"
332+
},
333+
{
334+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-or-later.txt",
335+
"copyleft": "yes",
336+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
337+
"name": "GPL-2.0-or-later",
338+
"osadl_updated": "2024-11-04T13:45:00+0000",
339+
"patent_hints": "yes",
340+
"source": "scancode",
341+
"url": "https://spdx.org/licenses/GPL-2.0-or-later.html"
342+
},
343+
{
344+
"name": "CC0-1.0",
345+
"source": "scancode",
346+
"url": "https://spdx.org/licenses/CC0-1.0.html"
347+
},
348+
{
349+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-or-later.txt",
350+
"copyleft": "yes",
351+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
352+
"name": "GPL-2.0-or-later",
353+
"osadl_updated": "2024-11-04T13:45:00+0000",
354+
"patent_hints": "yes",
355+
"source": "file_spdx_tag",
356+
"url": "https://spdx.org/licenses/GPL-2.0-or-later.html"
357+
},
358+
{
359+
"checklist_url": "https://www.osadl.org/fileadmin/checklists/unreflicenses/GPL-2.0-only.txt",
360+
"copyleft": "yes",
361+
"incompatible_with": "Apache-1.0, Apache-1.1, Apache-2.0, BSD-4-Clause, BSD-4-Clause-UC, BSD-4.3TAHOE, ECL-2.0, FTL, IJG, LicenseRef-scancode-bsla-no-advert, Minpack, OpenSSL, PHP-3.01, Python-2.0, zlib-acknowledgement, XFree86-1.1",
362+
"name": "GPL-2.0-only",
363+
"osadl_updated": "2024-11-04T13:45:00+0000",
364+
"patent_hints": "yes",
365+
"source": "component_declared",
366+
"url": "https://spdx.org/licenses/GPL-2.0-only.html"
367+
}
368+
],
369+
"lines": "30-79",
370+
"matched": "62%",
371+
"oss_lines": "28-77",
372+
"purl": [
373+
"pkg:github/scanoss/scanner.c"
374+
],
375+
"release_date": "2021-05-26",
376+
"server": {
377+
"kb_version": {
378+
"daily": "24.11.13",
379+
"monthly": "24.10"
380+
},
381+
"version": "5.4.8"
382+
},
383+
"source_hash": "920066098c63d986a663132d9ec73e03",
384+
"status": "pending",
385+
"url": "https://github.com/scanoss/scanner.c",
386+
"url_hash": "2d1700ba496453d779d4987255feb5f2",
387+
"url_stats": {},
388+
"vendor": "scanoss",
389+
"version": "1.3.3"
390+
}
391+
]
392+
}

0 commit comments

Comments
 (0)