Sequoia
|
Helper for testing smart pointers. More...
#include <ConcreteTypeCheckers.hpp>
Public Types | |
using | type = T |
Static Public Member Functions | |
template<test_mode Mode, class Advisor > | |
static void | test (equality_check_t, test_logger< Mode > &logger, const type &obtained, const type &prediction, const tutor< Advisor > &advisor) |
Static Protected Member Functions | |
template<test_mode Mode, class Advisor > | |
static void | test_pointees (test_logger< Mode > &logger, const type &obtained, const type &prediction, const tutor< Advisor > &advisor) |
Helper for testing smart pointers.
The general pattern for smart pointers is that test(equality, ...)
checks for equality of the underlying pointers, whereas `test(equivalence, ...) checks the pointees, using the strongest available check.