Log Surgeon
Test & API docs
Loading...
Searching...
No Matches
ReaderParser unit tests.

Unit tests for ReaderParser wrap around handling. More...

Functions

void reader_parser_wrap_around ()
 Tests the reader parser behavior when parsing variables without capture groups.

Detailed Description

Unit tests for ReaderParser wrap around handling.

These unit tests contain the ReaderParser tag.

Function Documentation

◆ reader_parser_wrap_around()

void reader_parser_wrap_around ( )

Tests the reader parser behavior when parsing variables without capture groups.

This test verifies that the reader parser correctly handles the wrap around handling when a log begins or ends near the boundaries of the buffer:

  • Considers the case where the log ends right at the end of the buffer.
  • Considers the case where the log starts right after wrapping around.
  • Considers every case in between, which has the added benefit of testing every case for each tested variable as well (which include a capture).