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

Unit tests for ExpressionView to verify construction, bounds clamping, well-formedness, extension to adjacent wildcards, and regex generation. More...

Functions

void empty_expression_view ()
 Tests an empty ExpressionView.
void full_expression_view ()
 Tests an ExpressionView that captures the entire Expression.
void wildcard_subrange_expression_view ()
 Tests an ExpressionView that captures a subrange of Expression with wildcards.
void escape_subrange_expression_view ()
 Tests an ExpressionView that captures a subrange of Expression with escaped literals.
void expression_view_bound_clamping ()
 Tests bound clamping during ExpressionViewconstruction.
void well_formed_expression_view ()
 Tests ExpressionViews for well-formedness.
void expression_view_starting_or_ending_with_greedy_wildcard ()
 Tests ExpressionViews for flanking greedy wildcards.
void extend_expression_view_to_adjacent_greedy_wildcards ()
 Tests extending ExpressionView to include adjacent greedy wildcards.
void generate_expression_view_regex_string ()
 Tests generating regex strings from ExpressionView.

Detailed Description

Unit tests for ExpressionView to verify construction, bounds clamping, well-formedness, extension to adjacent wildcards, and regex generation.

These unit tests contain the ExpressionView tag.

Function Documentation

◆ empty_expression_view()

void empty_expression_view ( )

Tests an empty ExpressionView.

◆ escape_subrange_expression_view()

void escape_subrange_expression_view ( )

Tests an ExpressionView that captures a subrange of Expression with escaped literals.

◆ expression_view_bound_clamping()

void expression_view_bound_clamping ( )

Tests bound clamping during ExpressionViewconstruction.

Negative casted values test wrap-around behavior.

◆ expression_view_starting_or_ending_with_greedy_wildcard()

void expression_view_starting_or_ending_with_greedy_wildcard ( )

Tests ExpressionViews for flanking greedy wildcards.

◆ extend_expression_view_to_adjacent_greedy_wildcards()

void extend_expression_view_to_adjacent_greedy_wildcards ( )

Tests extending ExpressionView to include adjacent greedy wildcards.

◆ full_expression_view()

void full_expression_view ( )

Tests an ExpressionView that captures the entire Expression.

◆ generate_expression_view_regex_string()

void generate_expression_view_regex_string ( )

Tests generating regex strings from ExpressionView.

◆ well_formed_expression_view()

void well_formed_expression_view ( )

Tests ExpressionViews for well-formedness.

◆ wildcard_subrange_expression_view()

void wildcard_subrange_expression_view ( )

Tests an ExpressionView that captures a subrange of Expression with wildcards.