|
Log Surgeon
Test & API docs
|
#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 |
| 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.
| ordered_vector | Vector where elements are ordered to be strictly ascending. |
| auto log_surgeon::tests::test_equal | ( | T const & | lhs, |
| T const & | rhs ) -> void |
Tests comparison operators when lhs == rhs.
| lhs | Value on the lhs of the operator. |
| rhs | Value on the rhs of the operator. |