Log Surgeon
Test & API docs
Loading...
Searching...
No Matches
log_surgeon::tests Namespace Reference

Concepts

concept  StronglyThreeWayComparable

Functions

template<StronglyThreeWayComparable T>
auto test_equal (T const &lhs, T const &rhs) -> void
template<StronglyThreeWayComparable T>
auto test_greater_than (T const &lhs, T const &rhs) -> void
template<StronglyThreeWayComparable T>
auto test_less_than (T const &lhs, T const &rhs) -> void
template<StronglyThreeWayComparable T>
auto pairwise_comparison_of_strictly_ascending_vector (std::vector< T > const &ordered_vector) -> 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.

◆ test_greater_than()

template<StronglyThreeWayComparable T>
auto log_surgeon::tests::test_greater_than ( 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.

◆ test_less_than()

template<StronglyThreeWayComparable T>
auto log_surgeon::tests::test_less_than ( 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.