Skip to content

Commit 08f5769

Browse files
committed
add test for false positive GPL3 license
Ref: #3932 Signed-off-by: Alok Kumar <[email protected]>
1 parent 1250647 commit 08f5769

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
S5PC100_GPL3(0)

tests/licensedcode/test_detect.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,3 +1311,16 @@ def test_detection_return_correct_mit_not_apache_using_full_index(self):
13111311
matches = idx.match(location=query_location)
13121312
results = [m.rule.license_expression for m in matches]
13131313
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

Comments
 (0)