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.
 
def test_01_CheckCMakeFormat (self)
 Check if there is any difference between tracked file after applying cmake-format.
 

Static Public Attributes

None repo = None
 Holds the GitRepo's repository object # noqa.
 
None 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 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

None test-ns3.NS3StyleTestCase.repo = None
static

Holds the GitRepo's repository object # noqa.

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

◆ starting_diff

None 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: