Log Surgeon
Test & API docs
Loading...
Searching...
No Matches
test-buffer-parser.cpp File Reference
#include <string>
#include <string_view>
#include <unordered_map>
#include <utility>
#include <vector>
#include <log_surgeon/BufferParser.hpp>
#include <log_surgeon/Constants.hpp>
#include <log_surgeon/Lexer.hpp>
#include <log_surgeon/LogEvent.hpp>
#include <log_surgeon/LogParser.hpp>
#include <log_surgeon/Schema.hpp>
#include <log_surgeon/SchemaParser.hpp>
#include <log_surgeon/types.hpp>
#include <catch2/catch_test_macros.hpp>
#include <fmt/core.h>

Functions

void single_line_without_capture ()
 Tests the buffer parser behavior when parsing variables without capture groups.
void single_line_with_capture ()
 Validates tokenization behavior when using capture groups in variable schemas.
void single_line_with_clp_default_vars ()
 Validates tokenization behavior using the default schema commonly used in CLP.
void multi_line_with_newline_static_var_sequence ()
 Test variable after static-text at the start of a newline when previous line ends in a variable.
void multi_line_with_static_newline_static_var_sequence ()
 Test variable after static-text at start of newline when previous line ends in static-text.
void multi_line_with_static_newline_var_sequence ()
 Test variable at start of newline when previous line ends in static-text.
void multi_line_with_static_newline_var_newline_sequence ()
 Test variable followed by newline at start of newline when previous line ends in static-text.
void multi_line_with_delim_newline_var_sequence ()
 Test a variable at start of a newline when previous line ends in a delimiter.
void multi_line_with_delimited_vars ()
 Tests BufferParser with delimited variables using a custom schema.