A Discrete-Event Network Simulator
API
ns3::tests Namespace Reference

Namespace for test files, TestCases and TestSuites. More...

Classes

class  AggregateObjectTestCase
 Test we can aggregate Objects. More...
 
class  AlternateFindTestCase
 Test the Object Name Service can find Objects using a second type. More...
 
class  AlternateTestObject
 Alternate test object for the Name service. More...
 
class  BaseConfigObject
 Base config object. More...
 
class  BasicAddTestCase
 Test the Object Name Service can do its most basic job. More...
 
class  BasicFindTestCase
 Test the Object Name Service can find Objects. More...
 
class  BasicRenameTestCase
 Test the Object Name Service can rename objects. More...
 
class  BuildProfileTestCase
 Build profile test. More...
 
class  BuildProfileTestSuite
 Build profile test suite. More...
 
class  CommandLineBooleanTestCase
 Test boolean Command Line processing. More...
 
class  CommandLineCharStarTestCase
 Test char* buffer argument. More...
 
class  CommandLineExampleTestCase
 Run command line example as a test case. More...
 
class  CommandLineIntTestCase
 Test int Command Line processing. More...
 
class  CommandLineInvalidTestCase
 Test ignoring invalid arguments. More...
 
class  CommandLineNonOptionTestCase
 Test non-option arguments. More...
 
class  CommandLineOrderTestCase
 Test order of argument parsing. More...
 
class  CommandLineStringTestCase
 Test string Command Line processing. More...
 
class  CommandLineTestCaseBase
 A test base class that drives Command Line parsing. More...
 
class  CommandLineTestSuite
 The Test Suite that glues all of the Test Cases together. More...
 
class  CommandLineUint8tTestCase
 Test uint8_t Command Line processing. More...
 
class  CommandLineUnsignedIntTestCase
 Test unsigned int Command Line processing. More...
 
class  ComplexMatrixArrayTestCase
 Test for testing functions that apply to MatrixArrays that use complex numbers, such as HermitianTranspose that is only defined for complex type. More...
 
class  ConfigTestObject
 An object with some attributes that we can play with using config. More...
 
class  ConfigTestSuite
 The Test Suite that glues all of the Test Cases together. More...
 
class  CreateObjectTestCase
 Test we can make Objects using CreateObject. More...
 
class  DefaultHashTestCase
 Test default hash on fixed string. More...
 
class  DerivedConfigObject
 Derived config object. More...
 
class  DerivedConfigTestObject
 Derived test objects. More...
 
class  EnvironmentVariableTestSuite
 Environment variable handling test suite. More...
 
class  EnvVarTestCase
 EnvironmentVariable tests. More...
 
class  EventGarbageCollectorTestCase
 Event garbage collector test. More...
 
class  EventGarbageCollectorTestSuite
 Event garbage collector test suite. More...
 
class  ExamplesAsTestsTestSuite
 Run examples as tests, checking stdout for regressions. More...
 
class  FindPathTestCase
 Test the Object Name Service can look up an object and return its fully qualified path name. More...
 
class  Fnv1aTestCase
 FNV hash on fixed string. More...
 
class  FullyQualifiedAddTestCase
 Test the Object Name Service can correctly use a fully qualified path to add associations. More...
 
class  FullyQualifiedFindTestCase
 Test the Object Name Service can find Objects using a fully qualified path name. More...
 
class  FullyQualifiedRenameTestCase
 Test the Object Name Service can rename objects using a fully qualified path name. More...
 
class  GlobalValueTestCase
 Test for the ability to get at a GlobalValue. More...
 
class  GlobalValueTestSuite
 The Test Suite that glues all of the Test Cases together. More...
 
class  Hash32FunctionPtrTestCase
 Test 32-bit function pointer. More...
 
class  Hash64FunctionPtrTestCase
 Test 64-bit function pointer. More...
 
class  HashTestCase
 Base class for hash tests. More...
 
class  HashTestSuite
 Hash functions test suite. More...
 
class  IncrementalTestCase
 Test incremental hashing. More...
 
class  ManyUniformRandomVariablesOneGetValueCallTestCase
 Test case for many uniform distribution random variable stream generators. More...
 
class  ManyUniformRandomVariablesOneGetValueCallTestSuite
 Test suite for many uniform distribution random variable stream generators. More...
 
class  MatrixArrayTestCase
 MatrixArray test case for testing constructors, operators and other functions. More...
 
class  MatrixArrayTestSuite
 MatrixArray test suite. More...
 
class  Murmur3TestCase
 Test Murmur3 hash on fixed string. More...
 
class  NamesTestSuite
 Names Test Suite. More...
 
class  NoCount
 No Count class. More...
 
class  ObjectFactoryTestCase
 Test an Object factory can create Objects. More...
 
class  ObjectTestSuite
 The Test Suite that glues the Test Cases together. More...
 
class  ObjectVectorConfigTestCase
 Test for the ability to deal configure with vectors of objects. More...
 
class  ObjectVectorTraceConfigTestCase
 Test for the ability to trace configure with vectors of objects. More...
 
class  OneUniformRandomVariableManyGetValueCallsTestCase
 Test case for one uniform distribution random variable stream generator. More...
 
class  OneUniformRandomVariableManyGetValueCallsTestSuite
 Test suite for one uniform distribution random variable stream generator. More...
 
class  PtrTestBase
 Pointer base test class. More...
 
class  PtrTestCase
 Test case for pointer. More...
 
class  PtrTestSuite
 Test suite for pointer. More...
 
class  RelativeAddTestCase
 Test the Object Name Service can correctly use a relative path to add associations. More...
 
class  RelativeFindTestCase
 Test the Object Name Service can find Objects using a relative path name. More...
 
class  RelativeRenameTestCase
 Test the Object Name Service can rename objects using a relative path name. More...
 
class  RootNamespaceConfigTestCase
 Test for the ability to register and use a root namespace. More...
 
class  SampleTestCase1
 This is an example TestCase. More...
 
class  SampleTestSuite
 The TestSuite class names the TestSuite, identifies what type of TestSuite, and enables the TestCases to be run. More...
 
class  SearchAttributesOfParentObjectsTestCase
 Test for the ability to search attributes of parent classes when Resolver searches for attributes in a derived class object. More...
 
class  SplitStringTestCase
 SplitString tests. More...
 
class  SplitStringTestSuite
 TypeId test suites. More...
 
class  StringContextAddTestCase
 Test the Object Name Service can correctly use a string context. More...
 
class  StringContextFindTestCase
 Test the Object Name Service can find Objects using a string context. More...
 
class  StringContextRenameTestCase
 Test the Object Name Service can rename objects using a string context. More...
 
class  TestObject
 Simple test object to exercise the Name service. More...
 
class  TrickleTimerTestCase
 TrickleTimer test. More...
 
class  TrickleTimerTestSuite
 Trickle Timer test suite. More...
 
class  TypeTraitsTestCase
 Type traits test. More...
 
class  TypeTraitsTestSuite
 Type traits test suite. More...
 
class  UnderRootNamespaceConfigTestCase
 Test for the ability to add an object under the root namespace. More...
 
class  ValArrayTestCase
 ValArray test case for testing ValArray class. More...
 
class  ValArrayTestSuite
 ValArray test suite. More...
 
class  WatchdogTestCase
 Watchdog test. More...
 
class  WatchdogTestSuite
 Watchdog test suite. More...
 

Functions

uint16_t gnu_sum (const char *buffer, const std::size_t size)
 Simple hash function based on the GNU sum program. More...
 
uint32_t gnu_sum32 (const char *buffer, const std::size_t size)
 A 32-bit hash function, based on gnu_sum(). More...
 
uint64_t gnu_sum64 (const char *buffer, const std::size_t size)
 A 64-bit hash function, base on gnu_sum(). More...
 

Variables

static BuildProfileTestSuite g_BuildProfileTestSuite
 BuildProfileTestSuite instance variable. More...
 
static CommandLineTestSuite g_commandLineTestSuite
 CommandLineTestSuite instance variable. More...
 
static ConfigTestSuite g_configTestSuite
 ConfigTestSuite instance variable. More...
 
static EnvironmentVariableTestSuite g_EnvironmentVariableTestSuite
 Static variable for test initialization. More...
 
static EventGarbageCollectorTestSuite g_eventGarbageCollectorTestSuite
 EventGarbageCollectorTestSuite instance variable. More...
 
static ExampleAsTestSuite g_exampleCommandLineTest ("core-example-simulator", "sample-simulator", NS_TEST_SOURCEDIR)
 ExampleTestSuite instance variables. More...
 
static ExamplesAsTestsTestSuite g_examplesAsTestsTestSuite
 ExampleAsTestsTestSuite instance variable. More...
 
static GlobalValueTestSuite g_globalValueTestSuite
 GlobalValueTestSuite instance variable. More...
 
static HashTestSuite g_hashTestSuite
 HashTestSuite instance variable. More...
 
static ManyUniformRandomVariablesOneGetValueCallTestSuite g_manyUniformRandomVariablesOneGetValueCallTestSuite
 ManuUniformRandomVariablesOneGetValueCallTestSuite instance variable. More...
 
static MatrixArrayTestSuite g_matrixArrayTestSuite
 MatrixArrayTestSuite instance variable. More...
 
static NamesTestSuite g_namesTestSuite
 NamesTestSuite instance variable. More...
 
static ObjectTestSuite g_objectTestSuite
 ObjectTestSuite instance variable. More...
 
static OneUniformRandomVariableManyGetValueCallsTestSuite g_oneUniformRandomVariableManyGetValueCallsTestSuite
 OneUniformRandomVariableManyGetValueCallsTestSuite instance variable. More...
 
static PtrTestSuite g_ptrTestSuite
 PtrTestSuite instance variable. More...
 
static SampleTestSuite g_sampleTestSuite
 SampleTestSuite instance variable. More...
 
static SplitStringTestSuite g_SplitStringTestSuite
 Static variable for test initialization. More...
 
static TrickleTimerTestSuite g_trickleTimerTestSuite
 TrickleTimerTestSuite instance variable. More...
 
static TypeTraitsTestSuite g_typeTraitsTestSuite
 TypeTraitsTestSuite instance variable. More...
 
static ValArrayTestSuite g_valArrayTestSuite
 ValArrayTestSuite instance variable. More...
 
static WatchdogTestSuite g_watchdogTestSuite
 WatchdogTestSuite instance variable. More...
 

Detailed Description

Namespace for test files, TestCases and TestSuites.

Todo:
Reconsider the name? Rename to just EnvironmentVariableDictionary? System::EnvironmentVariable?

Variable Documentation

◆ g_exampleCommandLineTest

ExampleAsTestSuite ns3::tests::g_exampleCommandLineTest("core-example-simulator", "sample-simulator", NS_TEST_SOURCEDIR) ( "core-example-simulator"  ,
"sample-simulator"  ,
NS_TEST_SOURCEDIR   
)
static

ExampleTestSuite instance variables.

Tests ExampleTestSuite which runs a single example as test suite as specified in constructor arguments.

◆ g_examplesAsTestsTestSuite

ExamplesAsTestsTestSuite ns3::tests::g_examplesAsTestsTestSuite
static

ExampleAsTestsTestSuite instance variable.

Tests multiple examples in a single TestSuite using AddTestCase to add the examples to the suite.

Definition at line 121 of file examples-as-tests-test-suite.cc.

◆ g_manyUniformRandomVariablesOneGetValueCallTestSuite

ManyUniformRandomVariablesOneGetValueCallTestSuite ns3::tests::g_manyUniformRandomVariablesOneGetValueCallTestSuite
static

ManuUniformRandomVariablesOneGetValueCallTestSuite instance variable.

Definition at line 114 of file many-uniform-random-variables-one-get-value-call-test-suite.cc.

◆ g_matrixArrayTestSuite

MatrixArrayTestSuite ns3::tests::g_matrixArrayTestSuite
static

MatrixArrayTestSuite instance variable.

Definition at line 546 of file matrix-array-test-suite.cc.

◆ g_oneUniformRandomVariableManyGetValueCallsTestSuite

OneUniformRandomVariableManyGetValueCallsTestSuite ns3::tests::g_oneUniformRandomVariableManyGetValueCallsTestSuite
static

◆ g_valArrayTestSuite

ValArrayTestSuite ns3::tests::g_valArrayTestSuite
static

ValArrayTestSuite instance variable.

Definition at line 294 of file val-array-test-suite.cc.