Skip to content

Commit cb3d120

Browse files
committed
test cases for sample .podspec files
Signed-off-by: rpotter12 <rohitpotter12@gmail.com>
1 parent 01c0139 commit cb3d120

13 files changed

Lines changed: 655 additions & 42 deletions

tests/packagedcode/data/plugin/help.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,12 @@ Package: nuget
200200
extensions: .nupkg
201201
filetypes: zip archive, microsoft ooxml
202202

203+
--------------------------------------------
204+
Package: podspec
205+
class: packagedcode.podspec:PodspecPackage
206+
metafiles: *.podspec
207+
extensions: .podspec
208+
203209
--------------------------------------------
204210
Package: pypi
205211
class: packagedcode.pypi:PythonPackage
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"headers": [
3+
{
4+
"tool_name": "scancode-toolkit",
5+
"options": {
6+
"input": "<path>",
7+
"--json": "<file>",
8+
"--package": true,
9+
"--processes": "-1",
10+
"--strip-root": true
11+
},
12+
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
13+
"message": null,
14+
"errors": [],
15+
"extra_data": {
16+
"files_count": 1
17+
}
18+
}
19+
],
20+
"files": [
21+
{
22+
"path": "SwiftLib.podspec",
23+
"type": "file",
24+
"packages": [
25+
{
26+
"type": "podspec",
27+
"namespace": null,
28+
"name": "SwiftLib",
29+
"version": "0.0.1",
30+
"qualifiers": {},
31+
"subpath": null,
32+
"primary_language": "Swift",
33+
"description": " This CocoaPods library helps you perform calculation.",
34+
"release_date": null,
35+
"parties": [
36+
{
37+
"type": null,
38+
"role": "author",
39+
"name": "alizainprasla",
40+
"email": "alizainprasla@gmail.com",
41+
"url": null
42+
}
43+
],
44+
"keywords": [],
45+
"homepage_url": null,
46+
"download_url": null,
47+
"size": null,
48+
"sha1": null,
49+
"md5": null,
50+
"sha256": null,
51+
"sha512": null,
52+
"bug_tracking_url": null,
53+
"code_view_url": null,
54+
"vcs_url": null,
55+
"copyright": null,
56+
"license_expression": null,
57+
"declared_license": null,
58+
"notice_text": null,
59+
"root_path": "SwiftLib.podspec",
60+
"dependencies": [],
61+
"contains_source_code": null,
62+
"source_packages": [],
63+
"purl": "pkg:podspec/SwiftLib@0.0.1",
64+
"repository_homepage_url": null,
65+
"repository_download_url": null,
66+
"api_data_url": null
67+
}
68+
],
69+
"scan_errors": []
70+
}
71+
]
72+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"type": "podspec",
3+
"namespace": null,
4+
"name": "BadgeHub",
5+
"version": "0.1.1",
6+
"qualifiers": {},
7+
"subpath": null,
8+
"primary_language": "Swift",
9+
"description": " Make any UIView a full fledged animated notification center. It is a way to quickly add a notification badge icon to a UIView. It make very easy to add badge to any view.",
10+
"release_date": null,
11+
"parties": [
12+
{
13+
"type": null,
14+
"role": "author",
15+
"name": "jogendra",
16+
"email": "imjog24@gmail.com",
17+
"url": null
18+
}
19+
],
20+
"keywords": [],
21+
"homepage_url": null,
22+
"download_url": null,
23+
"size": null,
24+
"sha1": null,
25+
"md5": null,
26+
"sha256": null,
27+
"sha512": null,
28+
"bug_tracking_url": null,
29+
"code_view_url": null,
30+
"vcs_url": null,
31+
"copyright": null,
32+
"license_expression": null,
33+
"declared_license": null,
34+
"notice_text": null,
35+
"root_path": null,
36+
"dependencies": [],
37+
"contains_source_code": null,
38+
"source_packages": [],
39+
"purl": "pkg:podspec/BadgeHub@0.1.1",
40+
"repository_homepage_url": null,
41+
"repository_download_url": null,
42+
"api_data_url": null
43+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"type": "podspec",
3+
"namespace": null,
4+
"name": "LoadingShimmer",
5+
"version": "1.0.3",
6+
"qualifiers": {},
7+
"subpath": null,
8+
"primary_language": "Swift",
9+
"description": " An easy way to add a shimmering effect to any view with just single line of code. It is useful as an unobtrusive loading indicator. This is a network request waiting for the framework, the framework to increase the dynamic effect, convenient and fast, a line of code can be used.",
10+
"release_date": null,
11+
"parties": [
12+
{
13+
"type": null,
14+
"role": "author",
15+
"name": "jogendra",
16+
"email": "jogendrafx@gmail.com",
17+
"url": null
18+
}
19+
],
20+
"keywords": [],
21+
"homepage_url": null,
22+
"download_url": null,
23+
"size": null,
24+
"sha1": null,
25+
"md5": null,
26+
"sha256": null,
27+
"sha512": null,
28+
"bug_tracking_url": null,
29+
"code_view_url": null,
30+
"vcs_url": null,
31+
"copyright": null,
32+
"license_expression": null,
33+
"declared_license": null,
34+
"notice_text": null,
35+
"root_path": null,
36+
"dependencies": [],
37+
"contains_source_code": null,
38+
"source_packages": [],
39+
"purl": "pkg:podspec/LoadingShimmer@1.0.3",
40+
"repository_homepage_url": null,
41+
"repository_download_url": null,
42+
"api_data_url": null
43+
}

tests/packagedcode/data/podspec/Moya/Moya.podspec

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"type": "podspec",
3+
"namespace": null,
4+
"name": "Starscream",
5+
"version": "4.0.3",
6+
"qualifiers": {},
7+
"subpath": null,
8+
"primary_language": "Swift",
9+
"description": null,
10+
"release_date": null,
11+
"parties": [
12+
{
13+
"type": null,
14+
"role": "author",
15+
"name": "Dalton Cherry, Austin Cherry",
16+
"email": "http://daltoniam.com, http://austincherry.me",
17+
"url": null
18+
}
19+
],
20+
"keywords": [],
21+
"homepage_url": null,
22+
"download_url": null,
23+
"size": null,
24+
"sha1": null,
25+
"md5": null,
26+
"sha256": null,
27+
"sha512": null,
28+
"bug_tracking_url": null,
29+
"code_view_url": null,
30+
"vcs_url": null,
31+
"copyright": null,
32+
"license_expression": null,
33+
"declared_license": null,
34+
"notice_text": null,
35+
"root_path": null,
36+
"dependencies": [],
37+
"contains_source_code": null,
38+
"source_packages": [],
39+
"purl": "pkg:podspec/Starscream@4.0.3",
40+
"repository_homepage_url": null,
41+
"repository_download_url": null,
42+
"api_data_url": null
43+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"type": "podspec",
3+
"namespace": null,
4+
"name": "SwiftLib",
5+
"version": "0.0.1",
6+
"qualifiers": {},
7+
"subpath": null,
8+
"primary_language": "Swift",
9+
"description": " This CocoaPods library helps you perform calculation.",
10+
"release_date": null,
11+
"parties": [
12+
{
13+
"type": null,
14+
"role": "author",
15+
"name": "alizainprasla",
16+
"email": "alizainprasla@gmail.com",
17+
"url": null
18+
}
19+
],
20+
"keywords": [],
21+
"homepage_url": null,
22+
"download_url": null,
23+
"size": null,
24+
"sha1": null,
25+
"md5": null,
26+
"sha256": null,
27+
"sha512": null,
28+
"bug_tracking_url": null,
29+
"code_view_url": null,
30+
"vcs_url": null,
31+
"copyright": null,
32+
"license_expression": null,
33+
"declared_license": null,
34+
"notice_text": null,
35+
"root_path": null,
36+
"dependencies": [],
37+
"contains_source_code": null,
38+
"source_packages": [],
39+
"purl": "pkg:podspec/SwiftLib@0.0.1",
40+
"repository_homepage_url": null,
41+
"repository_download_url": null,
42+
"api_data_url": null
43+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"type": "podspec",
3+
"namespace": null,
4+
"name": "nanopb",
5+
"version": "1.30905.0",
6+
"qualifiers": {},
7+
"subpath": null,
8+
"primary_language": "Swift",
9+
"description": " Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is especially suitable for use in microcontrollers, but fits any memory restricted system.",
10+
"release_date": null,
11+
"parties": [
12+
{
13+
"type": null,
14+
"role": "author",
15+
"name": "Petteri Aimonen",
16+
"email": "jpa@nanopb.mail.kapsi.fi",
17+
"url": null
18+
}
19+
],
20+
"keywords": [],
21+
"homepage_url": null,
22+
"download_url": null,
23+
"size": null,
24+
"sha1": null,
25+
"md5": null,
26+
"sha256": null,
27+
"sha512": null,
28+
"bug_tracking_url": null,
29+
"code_view_url": null,
30+
"vcs_url": null,
31+
"copyright": null,
32+
"license_expression": null,
33+
"declared_license": null,
34+
"notice_text": null,
35+
"root_path": null,
36+
"dependencies": [],
37+
"contains_source_code": null,
38+
"source_packages": [],
39+
"purl": "pkg:podspec/nanopb@1.30905.0",
40+
"repository_homepage_url": null,
41+
"repository_download_url": null,
42+
"api_data_url": null
43+
}

0 commit comments

Comments
 (0)