Page MenuHomeSoftware Heritage

Added tests for language indexer (T722)
ClosedPublic

Authored by moranegg on Jun 13 2017, 5:13 PM.

Details

Summary

moved MockObjStorage to new file test_utils.py
added file test_language for testing indexer
using python and c content for testing pygment tool

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Ok. You could have done only one test with as input the list of the 2 sha1s - one with the c snippet, one with python ;)

This revision is now accepted and ready to land.Jun 13 2017, 6:01 PM
In D210#4305, @ardumont wrote:

Ok. You could have done only one test with as input the list of the 2 sha1s - one with the c snippet, one with python ;)

yes, but I wanted the test name to capture the language tested.c

Closed by commit rDCIDXd7d57350ee65: Added tests for language indexer (T722) (authored by Morane Otilia Gruenpeter <morane@petitpalais.softwareheritage.org>). · Explain WhyJun 14 2017, 10:42 AM
This revision was automatically updated to reflect the committed changes.