MCPcopy Create free account
hub / github.com/catchorg/Catch2 / captureValue

Method captureValue

extras/catch_amalgamated.cpp:1097–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095 }
1096
1097 void Capturer::captureValue( size_t index, std::string const& value ) {
1098 assert( index < m_messages.size() );
1099 m_messages[index].message += value;
1100 if ( m_isScoped ) {
1101 Detail::pushScopedMessage( CATCH_MOVE( m_messages[index] ) );
1102 } else {
1103 Detail::addUnscopedMessage( CATCH_MOVE( m_messages[index] ) );
1104 }
1105 m_captured++;
1106 }
1107
1108} // end namespace Catch
1109

Callers

nothing calls this directly

Calls 3

pushScopedMessageFunction · 0.70
addUnscopedMessageFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected