A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
test-ns3.NS3StyleTestCase Class Reference

ns-3 tests to check if the source code, whitespaces and CMake formatting are according to the coding style More...

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

Public Member Functions

None setUp (self)
 Import GitRepo and load the original diff state of the repository before the tests.
 
 test_01_CheckCMakeFormat (self)
 Check if there is any difference between tracked file after applying cmake-format.
 

Static Public Attributes

 repo = None
 Holds the GitRepo's repository object # noqa.
 
 starting_diff = None
 Holds the original diff, which must be maintained by each and every case tested # noqa.
 

Detailed Description

ns-3 tests to check if the source code, whitespaces and CMake formatting are according to the coding style

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

Member Function Documentation

◆ setUp()

None test-ns3.NS3StyleTestCase.setUp (   self)

Import GitRepo and load the original diff state of the repository before the tests.

Returns
None

Definition at line 547 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(), and ns3::PacketMetadata.Create().

+ Here is the call graph for this function:

◆ test_01_CheckCMakeFormat()

test-ns3.NS3StyleTestCase.test_01_CheckCMakeFormat (   self)

Check if there is any difference between tracked file after applying cmake-format.

Returns
None

Definition at line 574 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(), and test-ns3.run_ns3().

+ Here is the call graph for this function:

Member Data Documentation

◆ repo

test-ns3.NS3StyleTestCase.repo = None
static

Holds the GitRepo's repository object # noqa.

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

◆ starting_diff

test-ns3.NS3StyleTestCase.starting_diff = None
static

Holds the original diff, which must be maintained by each and every case tested # noqa.

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


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