Skip to content

Commit c9af620

Browse files
author
Prashanna Dahal
committed
Fix tests to follow scancode format
-- use check_packages_data -- instead of manually asserting data one by one. Signed-off-by: Prashanna Dahal <prashanna217@gmail.com>
1 parent 86b68a2 commit c9af620

6 files changed

Lines changed: 789 additions & 272 deletions

File tree

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
[
2+
{
3+
"type": "luarocks",
4+
"namespace": null,
5+
"name": "lua-cjson",
6+
"version": "2.1.0.16-1",
7+
"qualifiers": {},
8+
"subpath": null,
9+
"primary_language": "Lua",
10+
"description": "A fast JSON encoding/parsing module",
11+
"release_date": null,
12+
"parties": [],
13+
"keywords": [],
14+
"homepage_url": "http://www.kyne.com.au/~mark/software/lua-cjson.php",
15+
"download_url": null,
16+
"size": null,
17+
"sha1": null,
18+
"md5": null,
19+
"sha256": null,
20+
"sha512": null,
21+
"bug_tracking_url": null,
22+
"code_view_url": null,
23+
"vcs_url": "git+https://github.com/openresty/lua-cjson",
24+
"copyright": null,
25+
"holder": null,
26+
"declared_license_expression": "mit",
27+
"declared_license_expression_spdx": "MIT",
28+
"license_detections": [
29+
{
30+
"license_expression": "mit",
31+
"license_expression_spdx": "MIT",
32+
"matches": [
33+
{
34+
"license_expression": "mit",
35+
"license_expression_spdx": "MIT",
36+
"from_file": null,
37+
"start_line": 1,
38+
"end_line": 1,
39+
"matcher": "1-spdx-id",
40+
"score": 100.0,
41+
"matched_length": 1,
42+
"match_coverage": 100.0,
43+
"rule_relevance": 100,
44+
"rule_identifier": "spdx-license-identifier-mit-5da48780aba670b0860c46d899ed42a0f243ff06",
45+
"rule_url": null,
46+
"matched_text": "MIT"
47+
}
48+
],
49+
"identifier": "mit-a822f434-d61f-f2b1-c792-8b8cb9e7b9bf"
50+
}
51+
],
52+
"other_license_expression": null,
53+
"other_license_expression_spdx": null,
54+
"other_license_detections": [],
55+
"extracted_license_statement": "MIT",
56+
"notice_text": null,
57+
"source_packages": [],
58+
"file_references": [],
59+
"is_private": false,
60+
"is_virtual": false,
61+
"extra_data": {},
62+
"dependencies": [
63+
{
64+
"purl": "pkg:luarocks/lua@5.1",
65+
"extracted_requirement": ">= 5.1",
66+
"scope": "dependencies",
67+
"is_runtime": true,
68+
"is_optional": false,
69+
"is_pinned": false,
70+
"is_direct": true,
71+
"resolved_package": {},
72+
"extra_data": {}
73+
}
74+
],
75+
"repository_homepage_url": null,
76+
"repository_download_url": null,
77+
"api_data_url": null,
78+
"datasource_id": "luarocks_rockspec",
79+
"purl": "pkg:luarocks/lua-cjson@2.1.0.16-1"
80+
}
81+
]

0 commit comments

Comments
 (0)