A Discrete-Event Network Simulator
API
test-ns3.NS3UnusedSourcesTestCase Class Reference

ns-3 tests related to checking if source files were left behind, not being used by CMake More...

+ Inheritance diagram for test-ns3.NS3UnusedSourcesTestCase:
+ Collaboration diagram for test-ns3.NS3UnusedSourcesTestCase:

Public Member Functions

def setUp (self)
 Scan all C++ source files and add them to a list based on their path. More...
 
def test_01_UnusedExampleSources (self)
 Test if all example source files are being used in their respective CMakeLists.txt. More...
 
def test_02_UnusedModuleSources (self)
 Test if all module source files are being used in their respective CMakeLists.txt. More...
 
def test_03_UnusedUtilsSources (self)
 Test if all utils source files are being used in their respective CMakeLists.txt. More...
 

Static Public Attributes

dictionary directory_and_files = {}
 dictionary containing directories with .cc source files More...
 

Detailed Description

ns-3 tests related to checking if source files were left behind, not being used by CMake

Definition at line 170 of file test-ns3.py.

Member Function Documentation

◆ setUp()

def test-ns3.NS3UnusedSourcesTestCase.setUp (   self)

Scan all C++ source files and add them to a list based on their path.

Returns
None

Definition at line 178 of file test-ns3.py.

References test-ns3.NS3UnusedSourcesTestCase.directory_and_files.

◆ test_01_UnusedExampleSources()

def test-ns3.NS3UnusedSourcesTestCase.test_01_UnusedExampleSources (   self)

Test if all example source files are being used in their respective CMakeLists.txt.

Returns
None

Definition at line 194 of file test-ns3.py.

References test-ns3.NS3UnusedSourcesTestCase.directory_and_files, and list.

◆ test_02_UnusedModuleSources()

def test-ns3.NS3UnusedSourcesTestCase.test_02_UnusedModuleSources (   self)

Test if all module source files are being used in their respective CMakeLists.txt.

Returns
None

Definition at line 217 of file test-ns3.py.

References test-ns3.NS3UnusedSourcesTestCase.directory_and_files, and list.

◆ test_03_UnusedUtilsSources()

def test-ns3.NS3UnusedSourcesTestCase.test_03_UnusedUtilsSources (   self)

Test if all utils source files are being used in their respective CMakeLists.txt.

Returns
None

Definition at line 259 of file test-ns3.py.

References test-ns3.NS3UnusedSourcesTestCase.directory_and_files, and list.

Member Data Documentation

◆ directory_and_files

dictionary test-ns3.NS3UnusedSourcesTestCase.directory_and_files = {}
static

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