A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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

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

Static Public Attributes

dict directory_and_files = {}
 dictionary containing directories with .cc source files # noqa
 

Detailed Description

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

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

Member Function Documentation

◆ setUp()

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 263 of file test-ns3.py.

References test-ns3.NS3UnusedSourcesTestCase.directory_and_files.

◆ test_01_UnusedExampleSources()

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 279 of file test-ns3.py.

References FemtocellBlockAllocator.Create(), ns3::ObjectFactory.Create(), ns3::SpectrumChannelHelper.Create(), ns3::YansWifiChannelHelper.Create(), ns3::AttributeChecker.Create(), ns3::test::RandomVariable::TestCaseBase::RngGeneratorBase.Create(), ns3::EmptyAttributeChecker.Create(), ns3::EnumChecker< T >.Create(), ns3::internal::ObjectPtrContainerChecker< T >.Create(), ns3::internal::PointerChecker< T >.Create(), ns3::internal::TupleChecker< Args >.Create(), ns3::test::RandomVariable::TestCaseBase::RngGenerator< RNG >.Create(), ns3::DsrHelper.Create(), ns3::Ipv4RoutingHelper.Create(), ns3::Ipv6RoutingHelper.Create(), ns3::AodvHelper.Create(), ns3::DsdvHelper.Create(), ns3::Ipv4GlobalRoutingHelper.Create(), ns3::Ipv4ListRoutingHelper.Create(), ns3::Ipv4StaticRoutingHelper.Create(), ns3::Ipv6ListRoutingHelper.Create(), ns3::Ipv6StaticRoutingHelper.Create(), ns3::RipHelper.Create(), ns3::RipNgHelper.Create(), ns3::NixVectorHelper< T >.Create(), ns3::OlsrHelper.Create(), ns3::SpectrumPhyHelper.Create(), ns3::WifiPhyHelper.Create(), ns3::SpectrumWifiPhyHelper.Create(), ns3::YansWifiPhyHelper.Create(), ns3::WifiMacHelper.Create(), ns3::BuildingContainer.Create(), FemtocellBlockAllocator.Create(), ns3::NodeContainer.Create(), ns3::GridBuildingAllocator.Create(), ns3::NodeContainer.Create(), ns3::Buffer.Create(), ns3::PacketMetadata.Create(), test-ns3.NS3UnusedSourcesTestCase.directory_and_files, and list.

+ Here is the call graph for this function:

◆ test_02_UnusedModuleSources()

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 308 of file test-ns3.py.

References FemtocellBlockAllocator.Create(), ns3::ObjectFactory.Create(), ns3::SpectrumChannelHelper.Create(), ns3::YansWifiChannelHelper.Create(), ns3::AttributeChecker.Create(), ns3::test::RandomVariable::TestCaseBase::RngGeneratorBase.Create(), ns3::EmptyAttributeChecker.Create(), ns3::EnumChecker< T >.Create(), ns3::internal::ObjectPtrContainerChecker< T >.Create(), ns3::internal::PointerChecker< T >.Create(), ns3::internal::TupleChecker< Args >.Create(), ns3::test::RandomVariable::TestCaseBase::RngGenerator< RNG >.Create(), ns3::DsrHelper.Create(), ns3::Ipv4RoutingHelper.Create(), ns3::Ipv6RoutingHelper.Create(), ns3::AodvHelper.Create(), ns3::DsdvHelper.Create(), ns3::Ipv4GlobalRoutingHelper.Create(), ns3::Ipv4ListRoutingHelper.Create(), ns3::Ipv4StaticRoutingHelper.Create(), ns3::Ipv6ListRoutingHelper.Create(), ns3::Ipv6StaticRoutingHelper.Create(), ns3::RipHelper.Create(), ns3::RipNgHelper.Create(), ns3::NixVectorHelper< T >.Create(), ns3::OlsrHelper.Create(), ns3::SpectrumPhyHelper.Create(), ns3::WifiPhyHelper.Create(), ns3::SpectrumWifiPhyHelper.Create(), ns3::YansWifiPhyHelper.Create(), ns3::WifiMacHelper.Create(), ns3::BuildingContainer.Create(), FemtocellBlockAllocator.Create(), ns3::NodeContainer.Create(), ns3::GridBuildingAllocator.Create(), ns3::NodeContainer.Create(), ns3::Buffer.Create(), ns3::PacketMetadata.Create(), test-ns3.NS3UnusedSourcesTestCase.directory_and_files, and list.

+ Here is the call graph for this function:

◆ test_03_UnusedUtilsSources()

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 351 of file test-ns3.py.

References FemtocellBlockAllocator.Create(), ns3::ObjectFactory.Create(), ns3::SpectrumChannelHelper.Create(), ns3::YansWifiChannelHelper.Create(), ns3::AttributeChecker.Create(), ns3::test::RandomVariable::TestCaseBase::RngGeneratorBase.Create(), ns3::EmptyAttributeChecker.Create(), ns3::EnumChecker< T >.Create(), ns3::internal::ObjectPtrContainerChecker< T >.Create(), ns3::internal::PointerChecker< T >.Create(), ns3::internal::TupleChecker< Args >.Create(), ns3::test::RandomVariable::TestCaseBase::RngGenerator< RNG >.Create(), ns3::DsrHelper.Create(), ns3::Ipv4RoutingHelper.Create(), ns3::Ipv6RoutingHelper.Create(), ns3::AodvHelper.Create(), ns3::DsdvHelper.Create(), ns3::Ipv4GlobalRoutingHelper.Create(), ns3::Ipv4ListRoutingHelper.Create(), ns3::Ipv4StaticRoutingHelper.Create(), ns3::Ipv6ListRoutingHelper.Create(), ns3::Ipv6StaticRoutingHelper.Create(), ns3::RipHelper.Create(), ns3::RipNgHelper.Create(), ns3::NixVectorHelper< T >.Create(), ns3::OlsrHelper.Create(), ns3::SpectrumPhyHelper.Create(), ns3::WifiPhyHelper.Create(), ns3::SpectrumWifiPhyHelper.Create(), ns3::YansWifiPhyHelper.Create(), ns3::WifiMacHelper.Create(), ns3::BuildingContainer.Create(), FemtocellBlockAllocator.Create(), ns3::NodeContainer.Create(), ns3::GridBuildingAllocator.Create(), ns3::NodeContainer.Create(), ns3::Buffer.Create(), ns3::PacketMetadata.Create(), test-ns3.NS3UnusedSourcesTestCase.directory_and_files, and list.

+ Here is the call graph for this function:

Member Data Documentation

◆ directory_and_files

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

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