File NamedValueComparator.hpp¶
↰ Parent directory (include/mu/tiny/mock)
Interface and helpers for comparing mock parameters of custom types.
Definition (include/mu/tiny/mock/NamedValueComparator.hpp)¶
Detailed Description¶
When a mock expectation is set with mu::tiny::mock::ExpectedCall::with_parameter_of_type(), the framework needs to know how to compare the expected value against the actual value. Implement Class NamedValueComparator for your type and register it with mu::tiny::mock::Support::install_comparator().
Three concrete implementations are provided:
Class FunctionComparator wraps plain function pointers
Template Class TypedMockComparator uses
T::operator==and Function mu::tiny::string_from(const mock::NamedValue&)
See also Class NamedValueCopier for output-parameter support.
Includes¶
mu/tiny/String.hpp(File String.hpp)mu/tiny/export.h