- How to replicate:
- Create an analyzer, add three filters: 'a', 'b', 'c'.
- Call
remove_filter(1). - Instead of removing the second filter, it may raise a ValueError or remove the wrong filter.
- How to replicate:
- Call
filter_datawith a non-existent file path. - Instead of raising an exception, it prints the error and returns None.
- Call
- How to replicate:
- Use
get_requests()for both a web log and an auth log. - Compare the output dictionaries: keys and order differ.
- Use
- How to replicate:
- Run analyzer on an empty log file.
- Returns empty list, but no warning or message is shown.
- How to replicate:
- Add a malformed line to a log file (e.g., missing fields).
- Analyzer silently skips it; should log or count malformed lines.
- How to replicate:
- Try to analyze a log file with non-UTF-8 encoding.
- May crash with a UnicodeDecodeError.
- How to replicate:
- Analyze a very large log file (hundreds of MBs or more).
- May cause high memory usage or crash.
- Add a Try / Except structure and include the following Except errors:
-FileNotFoundError
-IOError - For these exceptions, log and raise an error