A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
python-unit-tests.TestSimulator Class Reference

TestSimulator class. More...

+ Inheritance diagram for python-unit-tests.TestSimulator:
+ Collaboration diagram for python-unit-tests.TestSimulator:

Public Member Functions

def testAttributes (self)
 Test attributes function.
 
def testCommandLine (self)
 Test command line.
 
def testConfig (self)
 Test configuration.
 
def testEchoServerApplication (self)
 Test python-based application.
 
def testIdentity (self)
 Test identify.
 
def testSchedule (self)
 Test schedule.
 
def testScheduleDestroy (self)
 Test schedule destroy.
 
def testScheduleNow (self)
 Test schedule now.
 
def testScheduleWithContext (self)
 Test schedule with context.
 
def testSocket (self)
 Test socket.
 
def testSubclass (self)
 Test subclass.
 
def testTimeComparison (self)
 Test time comparison.
 
def testTimeNumericOperations (self)
 Test numeric operations.
 
def testTypeId (self)
 Test type ID.
 

Public Attributes

 m_socket
 Socket used by the server to listen to port.
 
 port
 Listen port for the server.
 

Protected Attributes

 _args_received
 args
 
 _cb_time
 current time
 
 _context_received
 context
 
 _received_packet
 received packet
 

Private Attributes

 __python_owns__
 EchoServer application class.
 

Detailed Description

TestSimulator class.

Definition at line 37 of file python-unit-tests.py.

Member Function Documentation

◆ testAttributes()

def python-unit-tests.TestSimulator.testAttributes (   self)

Test attributes function.

Parameters
selfthis object
Returns
None

Definition at line 253 of file python-unit-tests.py.

◆ testCommandLine()

def python-unit-tests.TestSimulator.testCommandLine (   self)

Test command line.

Parameters
selfthis object
Returns
None

Definition at line 313 of file python-unit-tests.py.

◆ testConfig()

def python-unit-tests.TestSimulator.testConfig (   self)

Test configuration.

Parameters
selfthis object
Returns
None

Definition at line 200 of file python-unit-tests.py.

◆ testEchoServerApplication()

def python-unit-tests.TestSimulator.testEchoServerApplication (   self)

Test python-based application.

Parameters
selfthis object
Returns
None

Definition at line 363 of file python-unit-tests.py.

◆ testIdentity()

def python-unit-tests.TestSimulator.testIdentity (   self)

Test identify.

Parameters
selfthis object
Returns
None

Definition at line 284 of file python-unit-tests.py.

◆ testSchedule()

def python-unit-tests.TestSimulator.testSchedule (   self)

Test schedule.

Parameters
selfthis object
Returns
None

Definition at line 78 of file python-unit-tests.py.

References python-unit-tests.TestSimulator._args_received, python-unit-tests.TestSimulator._cb_time, and list.

◆ testScheduleDestroy()

def python-unit-tests.TestSimulator.testScheduleDestroy (   self)

Test schedule destroy.

Parameters
selfthis object
Returns
None

Definition at line 109 of file python-unit-tests.py.

References python-unit-tests.TestSimulator._args_received, python-unit-tests.TestSimulator._cb_time, and list.

◆ testScheduleNow()

def python-unit-tests.TestSimulator.testScheduleNow (   self)

Test schedule now.

Parameters
selfthis object
Returns
None

Definition at line 47 of file python-unit-tests.py.

◆ testScheduleWithContext()

def python-unit-tests.TestSimulator.testScheduleWithContext (   self)

Test schedule with context.

Parameters
selfthis object
Returns
None

Definition at line 143 of file python-unit-tests.py.

◆ testSocket()

def python-unit-tests.TestSimulator.testSocket (   self)

Test socket.

Parameters
self
Returns
None

Definition at line 208 of file python-unit-tests.py.

◆ testSubclass()

def python-unit-tests.TestSimulator.testSubclass (   self)

Test subclass.

Parameters
selfthis object
Returns
None

Definition at line 347 of file python-unit-tests.py.

◆ testTimeComparison()

def python-unit-tests.TestSimulator.testTimeComparison (   self)

Test time comparison.

Parameters
selfthis object
Returns
None

Definition at line 178 of file python-unit-tests.py.

◆ testTimeNumericOperations()

def python-unit-tests.TestSimulator.testTimeNumericOperations (   self)

Test numeric operations.

Parameters
selfthis object
Returns
None

Definition at line 189 of file python-unit-tests.py.

◆ testTypeId()

def python-unit-tests.TestSimulator.testTypeId (   self)

Test type ID.

Parameters
selfthis object
Returns
None

Definition at line 301 of file python-unit-tests.py.

Member Data Documentation

◆ __python_owns__

python-unit-tests.TestSimulator.__python_owns__
private

EchoServer application class.

python_owns flag indicates that Cppyy should not manage the lifetime of this variable

Definition at line 418 of file python-unit-tests.py.

◆ _args_received

python-unit-tests.TestSimulator._args_received
protected

◆ _cb_time

python-unit-tests.TestSimulator._cb_time
protected

◆ _context_received

python-unit-tests.TestSimulator._context_received
protected

context

Definition at line 155 of file python-unit-tests.py.

◆ _received_packet

python-unit-tests.TestSimulator._received_packet
protected

received packet

Definition at line 217 of file python-unit-tests.py.

◆ m_socket

python-unit-tests.TestSimulator.m_socket

Socket used by the server to listen to port.

Definition at line 422 of file python-unit-tests.py.

◆ port

python-unit-tests.TestSimulator.port

Listen port for the server.

Definition at line 420 of file python-unit-tests.py.


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