test_authors.py (scancode-toolkit/tests/cluecode/test_authors.py) expects author_young_c-c.c (scancode-toolkit/tests/cluecode/data/authors/author_young_c-c.c) to have four author hits.
Two apply for Tim Hudson whereas the first one should be only found by the holders scan and not the authors scan.
author_young_c-c.c:
12 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
13 * included with this distribution is covered by the same copyright terms
14 * except that the holder is Tim Hudson (tjh@mincom.oz.au).
test_authors.py:
221 def test_author_young_c(self):
222 test_file = self.get_test_loc('authors/author_young_c-c.c')
223 expected = [
224 u'written by Eric Young (eay@mincom.oz.au).',
225 u'Tim Hudson (tjh@mincom.oz.au).',
226 u'written by Eric Young (eay@mincom.oz.au)',
227 u'written by Tim Hudson (tjh@mincom.oz.au)',
228 ]
229 check_detection(expected, test_file, what='authors')
Correct me if I'm wrong.
For clarity, I did not run the tests myself, just compared the source and the expected hits in test_authors.py.
test_authors.py (scancode-toolkit/tests/cluecode/test_authors.py) expects author_young_c-c.c (scancode-toolkit/tests/cluecode/data/authors/author_young_c-c.c) to have four author hits.
Two apply for Tim Hudson whereas the first one should be only found by the holders scan and not the authors scan.
author_young_c-c.c:
test_authors.py:
Correct me if I'm wrong.
For clarity, I did not run the tests myself, just compared the source and the expected hits in test_authors.py.