Skip to content

Commit 40ce57b

Browse files
committed
Update test cases for new flag addition
Signed-off-by: akugarg <[email protected]>
1 parent 477573a commit 40ce57b

File tree

60 files changed

+1852
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1852
-0
lines changed

docs/source/cli-reference/output-format.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ following options.
179179
"short_name": "MIT Old Style",
180180
"category": "Permissive",
181181
"is_exception": false,
182+
"is_unknown": false,
182183
"owner": "MIT",
183184
"homepage_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",
184185
"text_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",

docs/source/cli-reference/synopsis.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ A sample JSON output for an individual file will look like::
228228
"short_name": "MIT Old Style",
229229
"category": "Permissive",
230230
"is_exception": false,
231+
"is_unknown": false,
231232
"owner": "MIT",
232233
"homepage_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",
233234
"text_url": "http://fedoraproject.org/wiki/Licensing:MIT#Old_Style",

tests/cluecode/data/plugin_filter_clues/filtered-expected.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"short_name": "Apache 1.1",
4949
"category": "Permissive",
5050
"is_exception": false,
51+
"is_unknown": false,
5152
"owner": "Apache Software Foundation",
5253
"homepage_url": "http://www.apache.org/licenses/",
5354
"text_url": "http://apache.org/licenses/LICENSE-1.1",

tests/cluecode/data/plugin_filter_clues/filtered-expected2.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"short_name": "PyGres License 2.2",
4949
"category": "Permissive",
5050
"is_exception": false,
51+
"is_unknown": false,
5152
"owner": "Unspecified",
5253
"homepage_url": null,
5354
"text_url": "http://shell.vex.net/viewvc.cgi/pygresql/trunk/module/pgmodule.c?view=markup&pathrev=431",

tests/cluecode/data/plugin_filter_clues/filtered-expected3.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"short_name": "PCRE License",
4949
"category": "Permissive",
5050
"is_exception": false,
51+
"is_unknown": false,
5152
"owner": "University of Cambridge",
5253
"homepage_url": "http://www.pcre.org/licence.txt",
5354
"text_url": "http://www.pcre.org/licence.txt",

tests/formattedcode/data/reuse/vb.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@
539539
"short_name": "JBoss EULA",
540540
"category": "Proprietary Free",
541541
"is_exception": false,
542+
"is_unknown": false,
542543
"owner": "JBoss Community",
543544
"homepage_url": "",
544545
"text_url": "http://repository.jboss.org/licenses/jbossorg-eula.txt",
@@ -615,6 +616,7 @@
615616
"short_name": "LGPL 2.1 or later",
616617
"category": "Copyleft Limited",
617618
"is_exception": false,
619+
"is_unknown": false,
618620
"owner": "Free Software Foundation (FSF)",
619621
"homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
620622
"text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
@@ -735,6 +737,7 @@
735737
"short_name": "Apache 1.1",
736738
"category": "Permissive",
737739
"is_exception": false,
740+
"is_unknown": false,
738741
"owner": "Apache Software Foundation",
739742
"homepage_url": "http://www.apache.org/licenses/",
740743
"text_url": "http://apache.org/licenses/LICENSE-1.1",
@@ -817,6 +820,7 @@
817820
"short_name": "Apache 2.0",
818821
"category": "Permissive",
819822
"is_exception": false,
823+
"is_unknown": false,
820824
"owner": "Apache Software Foundation",
821825
"homepage_url": "http://www.apache.org/licenses/",
822826
"text_url": "http://www.apache.org/licenses/LICENSE-2.0",
@@ -881,6 +885,7 @@
881885
"short_name": "MIT License",
882886
"category": "Permissive",
883887
"is_exception": false,
888+
"is_unknown": false,
884889
"owner": "MIT",
885890
"homepage_url": "http://opensource.org/licenses/mit-license.php",
886891
"text_url": "http://opensource.org/licenses/mit-license.php",
@@ -957,6 +962,7 @@
957962
"short_name": "CPL 1.0",
958963
"category": "Copyleft Limited",
959964
"is_exception": false,
965+
"is_unknown": false,
960966
"owner": "IBM",
961967
"homepage_url": "http://www.eclipse.org/legal/cpl-v10.html",
962968
"text_url": "http://www.eclipse.org/legal/cpl-v10.html",
@@ -1021,6 +1027,7 @@
10211027
"short_name": "LGPL 2.1 or later",
10221028
"category": "Copyleft Limited",
10231029
"is_exception": false,
1030+
"is_unknown": false,
10241031
"owner": "Free Software Foundation (FSF)",
10251032
"homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
10261033
"text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
@@ -1141,6 +1148,7 @@
11411148
"short_name": "LGPL 2.1 or later",
11421149
"category": "Copyleft Limited",
11431150
"is_exception": false,
1151+
"is_unknown": false,
11441152
"owner": "Free Software Foundation (FSF)",
11451153
"homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
11461154
"text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
@@ -1223,6 +1231,7 @@
12231231
"short_name": "CC-BY-2.5",
12241232
"category": "Permissive",
12251233
"is_exception": false,
1234+
"is_unknown": false,
12261235
"owner": "Creative Commons",
12271236
"homepage_url": "http://creativecommons.org/licenses/by/2.5/",
12281237
"text_url": "http://creativecommons.org/licenses/by/2.5/legalcode",
@@ -1305,6 +1314,7 @@
13051314
"short_name": "LGPL 2.1 or later",
13061315
"category": "Copyleft Limited",
13071316
"is_exception": false,
1317+
"is_unknown": false,
13081318
"owner": "Free Software Foundation (FSF)",
13091319
"homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
13101320
"text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
@@ -1467,6 +1477,7 @@
14671477
"short_name": "LGPL 2.1 or later",
14681478
"category": "Copyleft Limited",
14691479
"is_exception": false,
1480+
"is_unknown": false,
14701481
"owner": "Free Software Foundation (FSF)",
14711482
"homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
14721483
"text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html",
@@ -1543,6 +1554,7 @@
15431554
"short_name": "Public Domain",
15441555
"category": "Public Domain",
15451556
"is_exception": false,
1557+
"is_unknown": false,
15461558
"owner": "Unspecified",
15471559
"homepage_url": "http://www.linfo.org/publicdomain.html",
15481560
"text_url": "",
@@ -1570,6 +1582,7 @@
15701582
"short_name": "Public Domain",
15711583
"category": "Public Domain",
15721584
"is_exception": false,
1585+
"is_unknown": false,
15731586
"owner": "Unspecified",
15741587
"homepage_url": "http://www.linfo.org/publicdomain.html",
15751588
"text_url": "",
@@ -1685,6 +1698,7 @@
16851698
"short_name": "ZLIB License",
16861699
"category": "Permissive",
16871700
"is_exception": false,
1701+
"is_unknown": false,
16881702
"owner": "zlib",
16891703
"homepage_url": "http://www.zlib.net/",
16901704
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -1761,6 +1775,7 @@
17611775
"short_name": "ZLIB License",
17621776
"category": "Permissive",
17631777
"is_exception": false,
1778+
"is_unknown": false,
17641779
"owner": "zlib",
17651780
"homepage_url": "http://www.zlib.net/",
17661781
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -1853,6 +1868,7 @@
18531868
"short_name": "ZLIB License",
18541869
"category": "Permissive",
18551870
"is_exception": false,
1871+
"is_unknown": false,
18561872
"owner": "zlib",
18571873
"homepage_url": "http://www.zlib.net/",
18581874
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -1880,6 +1896,7 @@
18801896
"short_name": "ZLIB License",
18811897
"category": "Permissive",
18821898
"is_exception": false,
1899+
"is_unknown": false,
18831900
"owner": "zlib",
18841901
"homepage_url": "http://www.zlib.net/",
18851902
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -1957,6 +1974,7 @@
19571974
"short_name": "ZLIB License",
19581975
"category": "Permissive",
19591976
"is_exception": false,
1977+
"is_unknown": false,
19601978
"owner": "zlib",
19611979
"homepage_url": "http://www.zlib.net/",
19621980
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -2033,6 +2051,7 @@
20332051
"short_name": "ZLIB License",
20342052
"category": "Permissive",
20352053
"is_exception": false,
2054+
"is_unknown": false,
20362055
"owner": "zlib",
20372056
"homepage_url": "http://www.zlib.net/",
20382057
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -2109,6 +2128,7 @@
21092128
"short_name": "ZLIB License",
21102129
"category": "Permissive",
21112130
"is_exception": false,
2131+
"is_unknown": false,
21122132
"owner": "zlib",
21132133
"homepage_url": "http://www.zlib.net/",
21142134
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -2219,6 +2239,7 @@
22192239
"short_name": "GPL 2.0 or later",
22202240
"category": "Copyleft",
22212241
"is_exception": false,
2242+
"is_unknown": false,
22222243
"owner": "Free Software Foundation (FSF)",
22232244
"homepage_url": "http://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html",
22242245
"text_url": "http://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html",
@@ -2247,6 +2268,7 @@
22472268
"short_name": "Ada linking exception to GPL 2.0 or later",
22482269
"category": "Copyleft Limited",
22492270
"is_exception": true,
2271+
"is_unknown": false,
22502272
"owner": "Dmitriy Anisimkov",
22512273
"homepage_url": "",
22522274
"text_url": "",
@@ -2404,6 +2426,7 @@
24042426
"short_name": "Boost 1.0",
24052427
"category": "Permissive",
24062428
"is_exception": false,
2429+
"is_unknown": false,
24072430
"owner": "Boost",
24082431
"homepage_url": "http://www.boost.org/users/license.html",
24092432
"text_url": "http://www.boost.org/LICENSE_1_0.txt",
@@ -2480,6 +2503,7 @@
24802503
"short_name": "Boost 1.0",
24812504
"category": "Permissive",
24822505
"is_exception": false,
2506+
"is_unknown": false,
24832507
"owner": "Boost",
24842508
"homepage_url": "http://www.boost.org/users/license.html",
24852509
"text_url": "http://www.boost.org/LICENSE_1_0.txt",
@@ -2544,6 +2568,7 @@
25442568
"short_name": "Boost 1.0",
25452569
"category": "Permissive",
25462570
"is_exception": false,
2571+
"is_unknown": false,
25472572
"owner": "Boost",
25482573
"homepage_url": "http://www.boost.org/users/license.html",
25492574
"text_url": "http://www.boost.org/LICENSE_1_0.txt",
@@ -2654,6 +2679,7 @@
26542679
"short_name": "ZLIB License",
26552680
"category": "Permissive",
26562681
"is_exception": false,
2682+
"is_unknown": false,
26572683
"owner": "zlib",
26582684
"homepage_url": "http://www.zlib.net/",
26592685
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -2770,6 +2796,7 @@
27702796
"short_name": "ZLIB License",
27712797
"category": "Permissive",
27722798
"is_exception": false,
2799+
"is_unknown": false,
27732800
"owner": "zlib",
27742801
"homepage_url": "http://www.zlib.net/",
27752802
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -2846,6 +2873,7 @@
28462873
"short_name": "ZLIB License",
28472874
"category": "Permissive",
28482875
"is_exception": false,
2876+
"is_unknown": false,
28492877
"owner": "zlib",
28502878
"homepage_url": "http://www.zlib.net/",
28512879
"text_url": "http://www.gzip.org/zlib/zlib_license.html",
@@ -2956,6 +2984,7 @@
29562984
"short_name": "CMR License",
29572985
"category": "Permissive",
29582986
"is_exception": false,
2987+
"is_unknown": false,
29592988
"owner": "CMR - Christian Michelsen Research AS",
29602989
"homepage_url": "",
29612990
"text_url": "",

tests/licensedcode/data/plugin_license/license-expression/scan.expected.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"short_name": "Apache 1.0",
2929
"category": "Permissive",
3030
"is_exception": false,
31+
"is_unknown": false,
3132
"owner": "Apache Software Foundation",
3233
"homepage_url": "http://www.apache.org/licenses/",
3334
"text_url": "http://www.apache.org/licenses/LICENSE-1.0",
@@ -75,6 +76,7 @@
7576
"short_name": "GPL 2.0",
7677
"category": "Copyleft",
7778
"is_exception": false,
79+
"is_unknown": false,
7880
"owner": "Free Software Foundation (FSF)",
7981
"homepage_url": "http://www.gnu.org/licenses/gpl-2.0.html",
8082
"text_url": "http://www.gnu.org/licenses/gpl-2.0.txt",
@@ -113,6 +115,7 @@
113115
"short_name": "Linux Syscall Exception to GPL",
114116
"category": "Copyleft Limited",
115117
"is_exception": true,
118+
"is_unknown": false,
116119
"owner": "Linux Foundation",
117120
"homepage_url": null,
118121
"text_url": "",
@@ -151,6 +154,7 @@
151154
"short_name": "Linux-OpenIB",
152155
"category": "Permissive",
153156
"is_exception": false,
157+
"is_unknown": false,
154158
"owner": "Linux Foundation",
155159
"homepage_url": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/infiniband/core/sa.h",
156160
"text_url": "https://github.com/ofiwg/libfabric/blob/master/contrib/buildrpm/README",

tests/licensedcode/data/plugin_license/license_url.expected.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"short_name": "Apache 1.0",
3737
"category": "Permissive",
3838
"is_exception": false,
39+
"is_unknown": false,
3940
"owner": "Apache Software Foundation",
4041
"homepage_url": "http://www.apache.org/licenses/",
4142
"text_url": "http://www.apache.org/licenses/LICENSE-1.0",

tests/licensedcode/data/plugin_license/package/package.expected.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"short_name": "MIT License",
2929
"category": "Permissive",
3030
"is_exception": false,
31+
"is_unknown": false,
3132
"owner": "MIT",
3233
"homepage_url": "http://opensource.org/licenses/mit-license.php",
3334
"text_url": "http://opensource.org/licenses/mit-license.php",

0 commit comments

Comments
 (0)