Right now, many of the tests for the analyzers work by running the analyze_log_stream method from the analyzer base class, meaning if we change the behavior of analyze_log_stream, these tests will fail despite changing nothing about the analyzers themselves. Instead, these tests should probably run the individual read_log_line and report methods of the analyzer they are testing (like the info_counter_test is doing here and here, for example), so that they will only fail if those specific methods are changed incorrectly.
Right now, many of the tests for the analyzers work by running the
analyze_log_stream
method from the analyzer base class, meaning if we change the behavior ofanalyze_log_stream
, these tests will fail despite changing nothing about the analyzers themselves. Instead, these tests should probably run the individualread_log_line
andreport
methods of the analyzer they are testing (like theinfo_counter_test
is doing here and here, for example), so that they will only fail if those specific methods are changed incorrectly.