We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1250647 commit 08f5769Copy full SHA for 08f5769
tests/licensedcode/data/false_positive/false-positive-gpl3.txt
@@ -0,0 +1 @@
1
+S5PC100_GPL3(0)
tests/licensedcode/test_detect.py
@@ -1311,3 +1311,16 @@ def test_detection_return_correct_mit_not_apache_using_full_index(self):
1311
matches = idx.match(location=query_location)
1312
results = [m.rule.license_expression for m in matches]
1313
assert results == expected
1314
+
1315
+ def test_detection_returns_correct_no_gpl3_false_positive(self):
1316
1317
+ idx = cache.get_index()
1318
+ expected = []
1319
1320
+ query_location = self.get_test_loc('false_positive/false-positive-gpl3.txt')
1321
+ matches = idx.match(location=query_location)
1322
1323
+ results = [m.rule.license_expression for m in matches]
1324
1325
+ assert results == expected
1326
0 commit comments