Log Surgeon
Test & API docs
Loading...
Searching...
No Matches
test-static-query-token.cpp File Reference
#include <vector>
#include <log_surgeon/wildcard_query_parser/StaticQueryToken.hpp>
#include <catch2/catch_test_macros.hpp>
#include "comparison_test_utils.hpp"

Functions

void comparison_operators ()
 Tests operator<=> and all derived operators.
template<StronglyThreeWayComparable T>
auto pairwise_comparison_of_strictly_ascending_vector (std::vector< T > const &ordered_vector) -> void
template<StronglyThreeWayComparable T>
auto test_equal (T const &lhs, T const &rhs) -> void

Function Documentation

◆ pairwise_comparison_of_strictly_ascending_vector()

template<StronglyThreeWayComparable T>
auto log_surgeon::tests::pairwise_comparison_of_strictly_ascending_vector ( std::vector< T > const & ordered_vector) -> void

Tests operators <=>, ==, !=, <, <=, >, >= for every pair of elements in the vector.

Parameters
ordered_vectorVector where elements are ordered to be strictly ascending.

◆ test_equal()

template<StronglyThreeWayComparable T>
auto log_surgeon::tests::test_equal ( T const & lhs,
T const & rhs ) -> void

Tests comparison operators when lhs == rhs.

Parameters
lhsValue on the lhs of the operator.
rhsValue on the rhs of the operator.