This repository has been archived on 2026-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
SpideyDetector/modules/test_line_count.py

14 lines
410 B
Python

"""
Test against the line count of the files in the discord folder.
"""
from modules import test_template
class LineCount(test_template.TestWalkTemplateSimpleFunction):
def __init__(self, thread_parameters):
"""
Simple test runner, compare line count to known good values.
"""
super().__init__(thread_parameters, lambda path: len(open(path, "rb").readlines()), " lines")