A Discrete-Event Network Simulator
API
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. More...
 

Public Attributes

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

Detailed Description

Container for details of a test failure.

Definition at line 75 of file test.cc.

Constructor & Destructor Documentation

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 soure file.
[in]_lineThe source line.

Definition at line 257 of file test.cc.

References NS_LOG_FUNCTION.

Member Data Documentation

std::string ns3::TestCaseFailure::actual

The actual value returned by the test.

Definition at line 91 of file test.cc.

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

std::string ns3::TestCaseFailure::cond

The name of the condition being tested.

Definition at line 90 of file test.cc.

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

std::string ns3::TestCaseFailure::file

The soure file.

Definition at line 94 of file test.cc.

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

std::string ns3::TestCaseFailure::limit

The expected value.

Definition at line 92 of file test.cc.

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

int32_t ns3::TestCaseFailure::line

The source line.

Definition at line 95 of file test.cc.

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

std::string ns3::TestCaseFailure::message

The associated message.

Definition at line 93 of file test.cc.

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


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