A Discrete-Event Network Simulator
API
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. More...
 
def test_01_CheckCMakeFormat (self)
 Check if there is any difference between tracked file after applying cmake-format. More...
 

Static Public Attributes

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

Detailed Description

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

Definition at line 539 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 550 of file test-ns3.py.

◆ test_01_CheckCMakeFormat()

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

References 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 548 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 546 of file test-ns3.py.


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