8#ifndef TWOBLUECUBES_CATCH_MESSAGE_H_INCLUDED
9#define TWOBLUECUBES_CATCH_MESSAGE_H_INCLUDED
24 SourceLineInfo
const& _lineInfo,
36 static unsigned int globalCount;
76 std::vector<MessageInfo> m_messages;
78 size_t m_captured = 0;
90 template<
typename T,
typename... Ts>
void captureValue(size_t index, std::string const &value)
void captureValues(size_t index, T const &value)
void captureValues(size_t index, T const &value, Ts const &... values)
Capturer(StringRef macroName, SourceLineInfo const &lineInfo, ResultWas::OfType resultType, StringRef names)
ScopedMessage(MessageBuilder const &builder)
ScopedMessage(ScopedMessage &duplicate)=delete
GenericStringRef< CharType > StringRef(const CharType *str)
Mark a character pointer as constant string.
std::string stringify(const T &e)
IResultCapture & getResultCapture()
#define T(meth, val, expected)
MessageBuilder(StringRef const ¯oName, SourceLineInfo const &lineInfo, ResultWas::OfType type)
MessageBuilder & operator<<(T const &value)
bool operator<(MessageInfo const &other) const
bool operator==(MessageInfo const &other) const
MessageInfo(StringRef const &_macroName, SourceLineInfo const &_lineInfo, ResultWas::OfType _type)
MessageStream & operator<<(T const &value)
ReusableStringStream m_stream