ns3::TestCase, ns3::TestSuite, ns3::TestRunner declarations, and NS_TEST_ASSERT
macro definitions.
More...
#include "system-wall-clock-ms.h"
#include <fstream>
#include <iostream>
#include <limits>
#include <list>
#include <sstream>
#include <stdint.h>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | ns3::TestCase |
encapsulates test code More... | |
class | ns3::TestRunner |
A runner to execute tests. More... | |
class | ns3::TestSuite |
A suite of tests to run. More... | |
class | ns3::TestVectors< T > |
A simple way to store test vectors (for stimulus or from responses) More... | |
Namespaces | |
namespace | ns3 |
Every class exported by the ns3 library is enclosed in the ns3 namespace. | |
namespace | ns3::tests |
Namespace for test files, TestCases and TestSuites. | |
Macros | |
#define | ASSERT_ON_FAILURE |
Check if we should assert on errors, and do so. | |
#define | CONTINUE_ON_FAILURE |
If we shouldn't continue on errors, return. | |
#define | CONTINUE_ON_FAILURE_RETURNS_BOOL |
If we shouldn't continue on errors, return test status. | |
#define | NS_TEST_ASSERT_MSG_EQ(actual, limit, msg) |
Test that an actual and expected (limit) value are equal and report and abort if not. | |
#define | NS_TEST_ASSERT_MSG_EQ_RETURNS_BOOL(actual, limit, msg) |
Test that an actual and expected (limit) value are equal and report and abort if not. | |
#define | NS_TEST_ASSERT_MSG_EQ_TOL(actual, limit, tol, msg) |
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report and abort if not. | |
#define | NS_TEST_ASSERT_MSG_EQ_TOL_RETURNS_BOOL(actual, limit, tol, msg) |
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report and abort if not. | |
#define | NS_TEST_ASSERT_MSG_GT(actual, limit, msg) |
Test that an actual value is greater than a limit and report and abort if not. | |
#define | NS_TEST_ASSERT_MSG_GT_OR_EQ(actual, limit, msg) |
Test that an actual value is greater than or equal to a limit and report and abort if not. | |
#define | NS_TEST_ASSERT_MSG_LT(actual, limit, msg) |
Test that an actual value is less than a limit and report and abort if not. | |
#define | NS_TEST_ASSERT_MSG_LT_OR_EQ(actual, limit, msg) |
Test that an actual value is less than or equal to a limit and report and abort if not. | |
#define | NS_TEST_ASSERT_MSG_NE(actual, limit, msg) |
Test that an actual and expected (limit) value are not equal and report and abort if not. | |
#define | NS_TEST_ASSERT_MSG_NE_RETURNS_BOOL(actual, limit, msg) |
Test that an actual and expected (limit) value are not equal and report and abort if not. | |
#define | NS_TEST_EXPECT_MSG_EQ(actual, limit, msg) |
Test that an actual and expected (limit) value are equal and report if not. | |
#define | NS_TEST_EXPECT_MSG_EQ_TOL(actual, limit, tol, msg) |
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report if not. | |
#define | NS_TEST_EXPECT_MSG_GT(actual, limit, msg) |
Test that an actual value is greater than a limit and report if not. | |
#define | NS_TEST_EXPECT_MSG_GT_OR_EQ(actual, limit, msg) |
Test that an actual value is greater than or equal to limit and report if not. | |
#define | NS_TEST_EXPECT_MSG_LT(actual, limit, msg) |
Test that an actual value is less than a limit and report if not. | |
#define | NS_TEST_EXPECT_MSG_LT_OR_EQ(actual, limit, msg) |
Test that an actual value is less than or equal to a limit and report if not. | |
#define | NS_TEST_EXPECT_MSG_NE(actual, limit, msg) |
Test that an actual and expected (limit) value are not equal and report if not. | |
Functions | |
bool | ns3::TestDoubleIsEqual (const double a, const double b, const double epsilon=std::numeric_limits< double >::epsilon()) |
Compare two double precision floating point numbers and declare them equal if they are within some epsilon of each other. | |
ns3::TestCase, ns3::TestSuite, ns3::TestRunner declarations, and NS_TEST_ASSERT
macro definitions.
Definition in file test.h.