FCF 2.0 development in progress...
> > > > >
[News] [C++ Libraries API] [C++ Downloads] [Donate to the project] [Contacts]

LMC_TEST_ERROR_MESSAGE from enum fcf::NTest::ELogMessageCategory

Value: fcf::NTest::LMC_TEST_ERROR_MESSAGE = 0x00040003

Enum: fcf::NTest::ELogMessageCategory

Package: fcfTest

File: test.hpp

Available from version: 1.1.14

Provides the detailed error description and diagnostic data for a failed test.

The fcf::NTest::LMC_TEST_ERROR_MESSAGE category is used to carry the rich diagnostic information associated with a test failure. It is a member of the fcf::NTest::LMC_TEST_GROUP.

While fcf::NTest::LMC_TEST_ERROR signals that a failure occurred, fcf::NTest::LMC_TEST_ERROR_MESSAGE provides the why and how. This includes:

  • The failing expression string.
  • The file path and line number where the failure occurred.
  • The actual values of the variables passed to the assertion macro.

This detailed information is crucial for debugging and is often formatted specifically by the framework to ensure maximum clarity.