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

16 lines
534 B
Python

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