Skip to content

Commit

Permalink
Update test cases upto expectation
Browse files Browse the repository at this point in the history
Signed-off-by: akugarg <akanksha.garg2k@gmail.com>
  • Loading branch information
akugarg committed Jul 3, 2021
1 parent 53fdff6 commit d514cbb
Show file tree
Hide file tree
Showing 38 changed files with 445 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@
}
}
],
"unknown_licenses": [],
"license_expressions": [
"apache-1.1"
],
"unknown_license_expressions": [],
"percentage_of_license_text": 92.44,
"copyrights": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@
}
}
],
"unknown_licenses": [],
"license_expressions": [
"pygres-2.2"
],
"unknown_license_expressions": [],
"percentage_of_license_text": 69.38,
"copyrights": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
"sha256": "408dfe8f9a70ea7bc9feaa9f77fb731ada0c26dc39008fdc5ead52d0442c656f",
"mime_type": "text/plain",
"file_type": "ASCII text",
"programming_language": null,
"programming_language": "verilog",
"is_binary": false,
"is_text": true,
"is_archive": false,
"is_media": false,
"is_source": false,
"is_source": true,
"is_script": false,
"licenses": [
{
Expand Down Expand Up @@ -77,9 +77,11 @@
}
}
],
"unknown_licenses": [],
"license_expressions": [
"pcre"
],
"unknown_license_expressions": [],
"percentage_of_license_text": 100.0,
"copyrights": [],
"holders": [],
Expand Down
4 changes: 4 additions & 0 deletions tests/formattedcode/data/json/simple-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
"is_source": false,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [],
"holders": [],
Expand Down Expand Up @@ -70,7 +72,9 @@
"is_source": true,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [
{
Expand Down
4 changes: 4 additions & 0 deletions tests/formattedcode/data/json/simple-expected.jsonpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
"is_source": false,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [],
"holders": [],
Expand Down Expand Up @@ -70,7 +72,9 @@
"is_source": true,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [
{
Expand Down
19 changes: 19 additions & 0 deletions tests/formattedcode/data/json/tree/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
"is_source": true,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [
{
Expand Down Expand Up @@ -83,7 +85,9 @@
"is_source": true,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [
{
Expand Down Expand Up @@ -126,7 +130,9 @@
"is_source": true,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [
{
Expand Down Expand Up @@ -169,7 +175,9 @@
"is_source": false,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [],
"holders": [],
Expand Down Expand Up @@ -200,7 +208,9 @@
"is_source": true,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [
{
Expand Down Expand Up @@ -243,7 +253,10 @@
"is_source": true,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [
{
Expand Down Expand Up @@ -286,7 +299,10 @@
"is_source": true,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [], "license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [
{
Expand Down Expand Up @@ -329,7 +345,10 @@
"is_source": true,
"is_script": false,
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [], "license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"copyrights": [
{
Expand Down
4 changes: 4 additions & 0 deletions tests/formattedcode/data/yaml/simple-expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ files:
is_source: no
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights: []
holders: []
Expand Down Expand Up @@ -67,7 +69,9 @@ files:
is_source: yes
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights:
- value: Copyright (c) 2000 ACME, Inc.
Expand Down
16 changes: 16 additions & 0 deletions tests/formattedcode/data/yaml/tree/expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ files:
is_source: yes
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights:
- value: Copyright (c) 2000 ACME, Inc.
Expand Down Expand Up @@ -74,7 +76,9 @@ files:
is_source: yes
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights:
- value: Copyright (c) 2000 ACME, Inc.
Expand Down Expand Up @@ -109,7 +113,9 @@ files:
is_source: yes
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights:
- value: Copyright (c) 2000 ACME, Inc.
Expand Down Expand Up @@ -144,7 +150,9 @@ files:
is_source: no
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights: []
holders: []
Expand Down Expand Up @@ -173,7 +181,9 @@ files:
is_source: yes
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights:
- value: Copyright (c) 2000 ACME, Inc.
Expand Down Expand Up @@ -208,7 +218,9 @@ files:
is_source: yes
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights:
- value: Copyright (c) 2000 ACME, Inc.
Expand Down Expand Up @@ -243,7 +255,9 @@ files:
is_source: yes
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights:
- value: Copyright (c) 2000 ACME, Inc.
Expand Down Expand Up @@ -278,7 +292,9 @@ files:
is_source: yes
is_script: no
licenses: []
unknown_licenses: []
license_expressions: []
unknown_license_expressions: []
percentage_of_license_text: '0'
copyrights:
- value: Copyright (c) 2000 ACME, Inc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"path": "license_url",
"type": "directory",
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"scan_errors": []
},
Expand Down Expand Up @@ -65,9 +67,11 @@
}
}
],
"unknown_licenses": [],
"license_expressions": [
"apache-1.0"
],
"unknown_license_expressions": [],
"percentage_of_license_text": 97.61,
"scan_errors": []
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@
}
}
],
"unknown_licenses": [],
"license_expressions": [
"mit"
],
"unknown_license_expressions": [],
"percentage_of_license_text": 4.05,
"packages": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"path": "sqlite.tgz",
"type": "directory",
"licenses": [],
"unknown_licenses": [],
"license_expressions": [],
"unknown_license_expressions": [],
"percentage_of_license_text": 0,
"scan_errors": []
},
Expand Down Expand Up @@ -4926,6 +4928,7 @@
"matched_text": "** The author disclaims copyright to this source code. In place of\n** a legal notice, here is a blessing:\n**\n** May you do good and not evil.\n** May you find forgiveness for yourself and forgive others.\n** May you share freely, never taking more than you give."
}
],
"unknown_licenses": [],
"license_expressions": [
"blessing",
"blessing",
Expand Down Expand Up @@ -5064,6 +5067,7 @@
"blessing",
"blessing"
],
"unknown_license_expressions": [],
"percentage_of_license_text": 36.67,
"scan_errors": []
}
Expand Down
Loading

0 comments on commit d514cbb

Please sign in to comment.