A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
SimulatorTemplateTestCase Class Reference

Check that all templates are instantiated correctly. More...

+ Inheritance diagram for SimulatorTemplateTestCase:
+ Collaboration diagram for SimulatorTemplateTestCase:

Public Member Functions

 SimulatorTemplateTestCase ()
 
void Ref () const
 Ref and Unref - only here for testing of Ptr<>
 
void Unref () const
 Ref and Unref - only here for testing of Ptr<>
 
- Public Member Functions inherited from ns3::TestCase
 TestCase (const TestCase &)=delete
 
virtual ~TestCase ()
 Destructor.
 
std::string GetName () const
 
TestCaseoperator= (const TestCase &)=delete
 

Private Member Functions

void DoRun () override
 Implementation to actually run this TestCase.
 
void bar0 ()
 Function used for scheduling.
 
void bar1 (int)
 Function used for scheduling.
 
void bar2 (int, int)
 Function used for scheduling.
 
void bar3 (int, int, int)
 Function used for scheduling.
 
void bar4 (int, int, int, int)
 Function used for scheduling.
 
void bar5 (int, int, int, int, int)
 Function used for scheduling.
 
void baz1 (int &)
 Function used for scheduling.
 
void baz2 (int &, int &)
 Function used for scheduling.
 
void baz3 (int &, int &, int &)
 Function used for scheduling.
 
void baz4 (int &, int &, int &, int &)
 Function used for scheduling.
 
void baz5 (int &, int &, int &, int &, int &)
 Function used for scheduling.
 
void cbaz1 (const int &)
 Function used for scheduling.
 
void cbaz2 (const int &, const int &)
 Function used for scheduling.
 
void cbaz3 (const int &, const int &, const int &)
 Function used for scheduling.
 
void cbaz4 (const int &, const int &, const int &, const int &)
 Function used for scheduling.
 
void cbaz5 (const int &, const int &, const int &, const int &, const int &)
 Function used for scheduling.
 
void bar0c () const
 Function used for scheduling.
 
void bar1c (int) const
 Function used for scheduling.
 
void bar2c (int, int) const
 Function used for scheduling.
 
void bar3c (int, int, int) const
 Function used for scheduling.
 
void bar4c (int, int, int, int) const
 Function used for scheduling.
 
void bar5c (int, int, int, int, int) const
 Function used for scheduling.
 
void baz1c (int &) const
 Function used for scheduling.
 
void baz2c (int &, int &) const
 Function used for scheduling.
 
void baz3c (int &, int &, int &) const
 Function used for scheduling.
 
void baz4c (int &, int &, int &, int &) const
 Function used for scheduling.
 
void baz5c (int &, int &, int &, int &, int &) const
 Function used for scheduling.
 
void cbaz1c (const int &) const
 Function used for scheduling.
 
void cbaz2c (const int &, const int &) const
 Function used for scheduling.
 
void cbaz3c (const int &, const int &, const int &) const
 Function used for scheduling.
 
void cbaz4c (const int &, const int &, const int &, const int &) const
 Function used for scheduling.
 
void cbaz5c (const int &, const int &, const int &, const int &, const int &) const
 Function used for scheduling.
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum class  Duration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Static Public Attributes inherited from ns3::TestCase
static constexpr auto QUICK = Duration::QUICK
 Deprecated test duration simple enums.
 
static constexpr auto EXTENSIVE = Duration::EXTENSIVE
 
static constexpr auto TAKES_FOREVER = Duration::TAKES_FOREVER
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 Constructor.
 
void AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK)
 Add an individual child TestCase to this test suite.
 
TestCaseGetParent () const
 Get the parent of this TestCase.
 
bool IsStatusFailure () const
 Check if any tests failed.
 
bool IsStatusSuccess () const
 Check if all tests passed.
 
void SetDataDir (std::string directory)
 Set the data directory where reference trace files can be found.
 
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
 Log the failure of this TestCase.
 
bool MustAssertOnFailure () const
 Check if this run should assert on failure.
 
bool MustContinueOnFailure () const
 Check if this run should continue on failure.
 
std::string CreateDataDirFilename (std::string filename)
 Construct the full path to a file in the data directory.
 
std::string CreateTempDirFilename (std::string filename)
 Construct the full path to a file in a temporary directory.
 

Detailed Description

Check that all templates are instantiated correctly.

This is a compilation test, it cannot fail at runtime.

Definition at line 210 of file simulator-test-suite.cc.

Constructor & Destructor Documentation

◆ SimulatorTemplateTestCase()

SimulatorTemplateTestCase::SimulatorTemplateTestCase ( )

Definition at line 354 of file simulator-test-suite.cc.

Member Function Documentation

◆ bar0()

void SimulatorTemplateTestCase::bar0 ( )
inlineprivate

Function used for scheduling.

Definition at line 231 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar0c()

void SimulatorTemplateTestCase::bar0c ( ) const
inlineprivate

Function used for scheduling.

Definition at line 248 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar1()

void SimulatorTemplateTestCase::bar1 ( int )
inlineprivate

Function used for scheduling.

Definition at line 232 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar1c()

void SimulatorTemplateTestCase::bar1c ( int ) const
inlineprivate

Function used for scheduling.

Definition at line 249 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar2()

void SimulatorTemplateTestCase::bar2 ( int ,
int  )
inlineprivate

Function used for scheduling.

Definition at line 233 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar2c()

void SimulatorTemplateTestCase::bar2c ( int ,
int  ) const
inlineprivate

Function used for scheduling.

Definition at line 250 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar3()

void SimulatorTemplateTestCase::bar3 ( int ,
int ,
int  )
inlineprivate

Function used for scheduling.

Definition at line 234 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar3c()

void SimulatorTemplateTestCase::bar3c ( int ,
int ,
int  ) const
inlineprivate

Function used for scheduling.

Definition at line 251 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar4()

void SimulatorTemplateTestCase::bar4 ( int ,
int ,
int ,
int  )
inlineprivate

Function used for scheduling.

Definition at line 235 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar4c()

void SimulatorTemplateTestCase::bar4c ( int ,
int ,
int ,
int  ) const
inlineprivate

Function used for scheduling.

Definition at line 252 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar5()

void SimulatorTemplateTestCase::bar5 ( int ,
int ,
int ,
int ,
int  )
inlineprivate

Function used for scheduling.

Definition at line 236 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ bar5c()

void SimulatorTemplateTestCase::bar5c ( int ,
int ,
int ,
int ,
int  ) const
inlineprivate

Function used for scheduling.

Definition at line 253 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz1()

void SimulatorTemplateTestCase::baz1 ( int & )
inlineprivate

Function used for scheduling.

Definition at line 237 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz1c()

void SimulatorTemplateTestCase::baz1c ( int & ) const
inlineprivate

Function used for scheduling.

Definition at line 254 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz2()

void SimulatorTemplateTestCase::baz2 ( int & ,
int &  )
inlineprivate

Function used for scheduling.

Definition at line 238 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz2c()

void SimulatorTemplateTestCase::baz2c ( int & ,
int &  ) const
inlineprivate

Function used for scheduling.

Definition at line 255 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz3()

void SimulatorTemplateTestCase::baz3 ( int & ,
int & ,
int &  )
inlineprivate

Function used for scheduling.

Definition at line 239 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz3c()

void SimulatorTemplateTestCase::baz3c ( int & ,
int & ,
int &  ) const
inlineprivate

Function used for scheduling.

Definition at line 256 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz4()

void SimulatorTemplateTestCase::baz4 ( int & ,
int & ,
int & ,
int &  )
inlineprivate

Function used for scheduling.

Definition at line 240 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz4c()

void SimulatorTemplateTestCase::baz4c ( int & ,
int & ,
int & ,
int &  ) const
inlineprivate

Function used for scheduling.

Definition at line 257 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz5()

void SimulatorTemplateTestCase::baz5 ( int & ,
int & ,
int & ,
int & ,
int &  )
inlineprivate

Function used for scheduling.

Definition at line 241 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ baz5c()

void SimulatorTemplateTestCase::baz5c ( int & ,
int & ,
int & ,
int & ,
int &  ) const
inlineprivate

Function used for scheduling.

Definition at line 258 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz1()

void SimulatorTemplateTestCase::cbaz1 ( const int & )
inlineprivate

Function used for scheduling.

Definition at line 242 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz1c()

void SimulatorTemplateTestCase::cbaz1c ( const int & ) const
inlineprivate

Function used for scheduling.

Definition at line 259 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz2()

void SimulatorTemplateTestCase::cbaz2 ( const int & ,
const int &  )
inlineprivate

Function used for scheduling.

Definition at line 243 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz2c()

void SimulatorTemplateTestCase::cbaz2c ( const int & ,
const int &  ) const
inlineprivate

Function used for scheduling.

Definition at line 260 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz3()

void SimulatorTemplateTestCase::cbaz3 ( const int & ,
const int & ,
const int &  )
inlineprivate

Function used for scheduling.

Definition at line 244 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz3c()

void SimulatorTemplateTestCase::cbaz3c ( const int & ,
const int & ,
const int &  ) const
inlineprivate

Function used for scheduling.

Definition at line 261 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz4()

void SimulatorTemplateTestCase::cbaz4 ( const int & ,
const int & ,
const int & ,
const int &  )
inlineprivate

Function used for scheduling.

Definition at line 245 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz4c()

void SimulatorTemplateTestCase::cbaz4c ( const int & ,
const int & ,
const int & ,
const int &  ) const
inlineprivate

Function used for scheduling.

Definition at line 262 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz5()

void SimulatorTemplateTestCase::cbaz5 ( const int & ,
const int & ,
const int & ,
const int & ,
const int &  )
inlineprivate

Function used for scheduling.

Definition at line 246 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ cbaz5c()

void SimulatorTemplateTestCase::cbaz5c ( const int & ,
const int & ,
const int & ,
const int & ,
const int &  ) const
inlineprivate

Function used for scheduling.

Definition at line 263 of file simulator-test-suite.cc.

Referenced by DoRun().

+ Here is the caller graph for this function:

◆ DoRun()

void SimulatorTemplateTestCase::DoRun ( )
overrideprivatevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 361 of file simulator-test-suite.cc.

References bar0(), bar0c(), bar1(), bar1c(), bar2(), bar2c(), bar3(), bar3c(), bar4(), bar4c(), bar5(), bar5c(), baz1(), baz1c(), baz2(), baz2c(), baz3(), baz3c(), baz4(), baz4c(), baz5(), baz5c(), ber1(), ber2(), ber3(), ber4(), ber5(), cbaz1(), cbaz1c(), cbaz2(), cbaz2c(), cbaz3(), cbaz3c(), cbaz4(), cbaz4c(), cbaz5(), cbaz5c(), cber1(), cber2(), cber3(), cber4(), cber5(), ns3::Simulator::Destroy(), foo0(), foo1(), foo2(), foo3(), foo4(), foo5(), ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Simulator::ScheduleDestroy(), ns3::Simulator::ScheduleNow(), and ns3::Seconds().

+ Here is the call graph for this function:

◆ Ref()

void SimulatorTemplateTestCase::Ref ( ) const
inline

Ref and Unref - only here for testing of Ptr<>

Definition at line 219 of file simulator-test-suite.cc.

◆ Unref()

void SimulatorTemplateTestCase::Unref ( ) const
inline

Ref and Unref - only here for testing of Ptr<>

Definition at line 220 of file simulator-test-suite.cc.


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