A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::TestCaseFailure Struct Reference

Container for details of a test failure. More...

+ Collaboration diagram for ns3::TestCaseFailure:

Public Member Functions

 TestCaseFailure (std::string _cond, std::string _actual, std::string _limit, std::string _message, std::string _file, int32_t _line)
 Constructor.
 

Public Attributes

std::string actual
 The actual value returned by the test.
 
std::string cond
 The name of the condition being tested.
 
std::string file
 The source file.
 
std::string limit
 The expected value.
 
int32_t line
 The source line.
 
std::string message
 The associated message.
 

Detailed Description

Container for details of a test failure.

Definition at line 64 of file test.cc.

Constructor & Destructor Documentation

◆ TestCaseFailure()

ns3::TestCaseFailure::TestCaseFailure ( std::string _cond,
std::string _actual,
std::string _limit,
std::string _message,
std::string _file,
int32_t _line )

Constructor.

Parameters
[in]_condThe name of the condition being tested.
[in]_actualThe actual value returned by the test.
[in]_limitThe expected value.
[in]_messageThe associated message.
[in]_fileThe source file.
[in]_lineThe source line.

Definition at line 245 of file test.cc.

References NS_LOG_FUNCTION.

Member Data Documentation

◆ actual

std::string ns3::TestCaseFailure::actual

The actual value returned by the test.

Definition at line 83 of file test.cc.

Referenced by ns3::operator<<(), and ns3::TestRunnerImpl::PrintReport().

◆ cond

std::string ns3::TestCaseFailure::cond

The name of the condition being tested.

Definition at line 82 of file test.cc.

Referenced by ns3::operator<<(), and ns3::TestRunnerImpl::PrintReport().

◆ file

std::string ns3::TestCaseFailure::file

The source file.

Definition at line 86 of file test.cc.

Referenced by ns3::operator<<(), and ns3::TestRunnerImpl::PrintReport().

◆ limit

std::string ns3::TestCaseFailure::limit

The expected value.

Definition at line 84 of file test.cc.

Referenced by ns3::operator<<(), and ns3::TestRunnerImpl::PrintReport().

◆ line

int32_t ns3::TestCaseFailure::line

The source line.

Definition at line 87 of file test.cc.

Referenced by ns3::operator<<(), and ns3::TestRunnerImpl::PrintReport().

◆ message

std::string ns3::TestCaseFailure::message

The associated message.

Definition at line 85 of file test.cc.

Referenced by ns3::operator<<(), and ns3::TestRunnerImpl::PrintReport().


The documentation for this struct was generated from the following file: