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.

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