6#ifndef MIMICPP_REPORTING_IREPORTER_HPP
7#define MIMICPP_REPORTING_IREPORTER_HPP
15#ifndef MIMICPP_DETAIL_IS_MODULE
73 std::vector<NoMatchReport> noMatchReports) = 0;
90 std::vector<ExpectationReport> expectationReports) = 0;
143 std::exception_ptr exception) = 0;
#define MIMICPP_DETAIL_MODULE_EXPORT
Definition Config.hpp:19
Contains the extracted info from a typed call::Info.
Definition CallReport.hpp:43
Contains the extracted info from a typed expectation.
Definition ExpectationReport.hpp:85
virtual void report_full_match(CallReport call, ExpectationReport expectationReport) noexcept=0
Handles the report for a fully matching expectation.
virtual void report_error(StringT message)=0
Handles general or unspecified errors.
virtual void report_no_matches(CallReport call, std::vector< NoMatchReport > noMatchReports)=0
Expects reports on all non-matching expectations. This is only called when no better options are avai...
virtual void report_unfulfilled_expectation(ExpectationReport expectationReport)=0
Handles the report of an unfulfilled expectation.
virtual void report_unhandled_exception(CallReport call, ExpectationReport expectationReport, std::exception_ptr exception)=0
Handles reports about unhandled exceptions during handle_call.
virtual void report_inapplicable_matches(CallReport call, std::vector< ExpectationReport > expectationReports)=0
Handles reports for all inapplicable but otherwise matching expectations. This function is called onl...
IReporter(const IReporter &)=default
virtual ~IReporter()=default
Defaulted virtual destructor.
IReporter(IReporter &&)=default
IReporter & operator=(IReporter &&)=default
IReporter & operator=(const IReporter &)=default
Definition BasicReporter.hpp:27
std::basic_string< CharT, CharTraitsT > StringT
Definition Fwd.hpp:391