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

Unit tests for QueryInterpretation construction, mutation, and comparison. More...

Functions

void empty_query_interpretation ()
 Creates an empty QueryInterpretation and tests serialization.
void static_text_query_interpretation ()
 Creates a QueryInterpretation with only static-text and tests serialization.
void variable_query_interpretation ()
 Creates a QueryInterpretation with a variable and tests serialization.
void wildcard_variable_query_interpretation ()
 Creates a QueryInterpretation with a wildcard variable and tests serialization.
void append_empty_static_text ()
 Appends empty static-text to a QueryInterpretation and tests serialization.
void append_empty_variable ()
 Appends an empty variable to a QueryInterpretation and tests serialization.
void append_empty_query_interpretation ()
 Appends an empty QueryInterpretation to another and tests serialization.
void append_tokens ()
 Appends a sequence of static and variable tokens and tests serialization.
void append_canonicalization ()
 Tests whether adjacent static-text tokens are merged for canonicalization.
void append_query_interpretation ()
 Appends a QueryInterpretation to another and tests serialization and canonicalization.
void comparison_operators ()
 Tests operator==, operator<=>, and all derived operators.

Detailed Description

Unit tests for QueryInterpretation construction, mutation, and comparison.

These unit tests contain the QueryInterpretation tag.

Function Documentation

◆ append_canonicalization()

void append_canonicalization ( )

Tests whether adjacent static-text tokens are merged for canonicalization.

◆ append_empty_query_interpretation()

void append_empty_query_interpretation ( )

Appends an empty QueryInterpretation to another and tests serialization.

◆ append_empty_static_text()

void append_empty_static_text ( )

Appends empty static-text to a QueryInterpretation and tests serialization.

◆ append_empty_variable()

void append_empty_variable ( )

Appends an empty variable to a QueryInterpretation and tests serialization.

◆ append_query_interpretation()

void append_query_interpretation ( )

Appends a QueryInterpretation to another and tests serialization and canonicalization.

◆ append_tokens()

void append_tokens ( )

Appends a sequence of static and variable tokens and tests serialization.

◆ comparison_operators()

void comparison_operators ( )

Tests operator==, operator<=>, and all derived operators.

◆ empty_query_interpretation()

void empty_query_interpretation ( )

Creates an empty QueryInterpretation and tests serialization.

◆ static_text_query_interpretation()

void static_text_query_interpretation ( )

Creates a QueryInterpretation with only static-text and tests serialization.

◆ variable_query_interpretation()

void variable_query_interpretation ( )

Creates a QueryInterpretation with a variable and tests serialization.

◆ wildcard_variable_query_interpretation()

void wildcard_variable_query_interpretation ( )

Creates a QueryInterpretation with a wildcard variable and tests serialization.