mimic++ v9.2.1
Loading...
Searching...
No Matches
mimicpp::reporting Namespace Reference

Classes

class  BasicReporter
 A reporter, which creates text messages and reports them via the provided callbacks. More...
 
class  CallReport
 Contains the extracted info from a typed call::Info. More...
 
class  DefaultReporter
 The default reporter. More...
 
class  Error
 
class  ExpectationReport
 Contains the extracted info from a typed expectation. More...
 
class  IReporter
 The reporter interface. More...
 
class  NoMatchReport
 Contains the requirement-outcomes (where at least one is negative) and the related expectation-report. More...
 
class  RequirementOutcomes
 Contains the boolean outcomes of a match-test. More...
 
class  SequenceReport
 
struct  state_applicable
 Denotes an applicable expectation state. More...
 
struct  state_inapplicable
 Denotes an inapplicable expectation state. More...
 
struct  state_saturated
 Denotes a saturated expectation state. More...
 
class  TargetReport
 Contains the extracted mock info. More...
 
class  TypeReport
 Contains information about a specific (potentially cv-ref-qualified) type. More...
 

Typedefs

using UnmatchedCallT = Error<CallReport>
 
using UnfulfilledExpectationT = Error<ExpectationReport>
 
using control_state_t
 Denotes an expectation state.
 
using BoostTestReporterT
 Reporter for the integration into Boost.Test.
 
using Catch2ReporterT
 Reporter for the integration into Catch2.
 
using DoctestReporterT
 Reporter for the integration into Doctest.
 
using GTestReporterT
 Reporter for the integration into gtest.
 

Functions

template<typename Return, typename... Params>
CallReport make_call_report (TargetReport target, call::Info< Return, Params... > callInfo, util::Stacktrace stacktrace)
 Generates the call report for a given call info.
 
template<std::derived_from< IReporter > T, typename... Args>
requires std::constructible_from<T, Args...>
void install_reporter (Args &&... args)
 Replaces the previous reporter with a newly constructed one.
 
template<typename Id, auto priorityStrategy>
constexpr SequenceReport make_sequence_report (sequence::detail::BasicSequence< Id, priorityStrategy > const &seq)
 
template<typename Id, auto priorityStrategy>
constexpr SequenceReport make_sequence_report (sequence::detail::BasicSequenceInterface< Id, priorityStrategy > const &seq)
 
StringT stringify_full_match (CallReport const &call, ExpectationReport expectation)
 
StringT stringify_inapplicable_matches (CallReport const &call, std::span< ExpectationReport > expectations)
 
StringT stringify_no_matches (CallReport const &call, std::span< NoMatchReport > noMatchReports)
 
StringT stringify_unfulfilled_expectation (ExpectationReport const &expectationReport)
 
StringT stringify_unhandled_exception (CallReport const &call, ExpectationReport const &expectationReport, std::exception_ptr const &exception)
 
template<typename Return, typename... Params>
CallReport make_call_report (TargetReport target, call::Info< Return, Params... > callInfo, util::Stacktrace stacktrace)
 Generates the call report for a given call info.
 

Typedef Documentation

◆ UnfulfilledExpectationT

◆ UnmatchedCallT

Function Documentation

◆ stringify_full_match()

StringT mimicpp::reporting::stringify_full_match ( CallReport const & call,
ExpectationReport expectation )
inlinenodiscard
Here is the caller graph for this function:

◆ stringify_inapplicable_matches()

StringT mimicpp::reporting::stringify_inapplicable_matches ( CallReport const & call,
std::span< ExpectationReport > expectations )
inlinenodiscard
Here is the caller graph for this function:

◆ stringify_no_matches()

StringT mimicpp::reporting::stringify_no_matches ( CallReport const & call,
std::span< NoMatchReport > noMatchReports )
inlinenodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stringify_unfulfilled_expectation()

StringT mimicpp::reporting::stringify_unfulfilled_expectation ( ExpectationReport const & expectationReport)
inlinenodiscard
Here is the caller graph for this function:

◆ stringify_unhandled_exception()

StringT mimicpp::reporting::stringify_unhandled_exception ( CallReport const & call,
ExpectationReport const & expectationReport,
std::exception_ptr const & exception )
inlinenodiscard
Here is the caller graph for this function: