SOFA API  ca665544
Open source framework for multi-physics simuation
sofa::testing::MessageAsTestFailure Class Reference

#include <TestMessageHandler.h>

Detailed Description

Rise a gtest failure when a message of type Message:type is emitted. Better use the macro: EXPECT_MSG_NOEMIT(Error) as a more 'good looking' version of

sofa::helper::logging::MessageAsTestFailure failure(sofa::helper::logging::Message::Error, FILE, LINE);

Public Member Functions

 MessageAsTestFailure (helper::logging::Message::Type t, const char *filename="unknown", int lineno=0)
 
virtual ~MessageAsTestFailure ()
 

Constructor details

◆ MessageAsTestFailure()

sofa::testing::MessageAsTestFailure::MessageAsTestFailure ( helper::logging::Message::Type  t,
const char filename = "unknown",
int  lineno = 0 
)

DEFINITION OF PUBLIC CLASSES ///////////////////////////////////

◆ ~MessageAsTestFailure()

sofa::testing::MessageAsTestFailure::~MessageAsTestFailure ( )
virtual