<commit_before>#!/usr/bin/env python
"""
This is the front end to the pcapfile test SUITE.
"""

import unittest


from linklayer_test import TestCase as LinklayerTest
from savefile_test import TestCase as SavefileTest
from protocols_linklayer_ethernet import TestCase as EthernetTest

if __name__ == '__main__':
    TEST_CLASSES = [SavefileTest, LinklayerTest, EthernetTest]
    SUITE = unittest.TestSuite()
    LOADER = unittest.TestLoader()
    for test_class in TEST_CLASSES:
        SUITE.addTests(LOADER.loadTestsFromTestCase(test_class))
    unittest.TextTestRunner(verbosity=2).run(SUITE)<commit_msg>Made test path more explict to support codecov under python3, still works for python2<commit_after>#!/usr/bin/env python
"""
This is the front end to the pcapfile test SUITE.
"""

import unittest


from pcapfile.test.linklayer_test import TestCase as LinklayerTest
from pcapfile.test.savefile_test import TestCase as SavefileTest
from pcapfile.test.protocols_linklayer_ethernet import TestCase as EthernetTest

if __name__ == '__main__':
    TEST_CLASSES = [SavefileTest, LinklayerTest, EthernetTest]
    SUITE = unittest.TestSuite()
    LOADER = unittest.TestLoader()
    for test_class in TEST_CLASSES:
        SUITE.addTests(LOADER.loadTestsFromTestCase(test_class))
    unittest.TextTestRunner(verbosity=2).run(SUITE)
{'fraction_non_alphanumeric': 0.07605421686746988, 'fraction_numerical': 0.0030120481927710845, 'mean_word_length': 5.268867924528302, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5799418', 'n_tokens_mistral': 432, 'n_tokens_neox': 408, 'n_words': 110}