Apps
Components
Interfaces
All Files
Source Tree
source:
apps.TestSuite.TestNodeListM.nc
Component: TestNodeListM
Required Interfaces
NodeList
Assert
Timer
TestControl
Test
Log
Provided Interfaces
TestUnit
Variables
const uint16_t TIMEOUT = 3
uint8_t timeoutSeconds
task void testAdd(void)
Test adding of nodes to the list Add a number of nodes and check if it exists in the list right after insertion and when after all nodes have been added.
task void testTimeout(void)
Test node timeout Using a timer, try to simulate periodic adding of nodes and check that nodes are no longer reported as existing after
task void testFull(void)
Test add response for a full node list Check if the node list fails to add any new node after the maximum number of nodes the list can contain has been added.
task void checkTimeout(void)
Function Index
command result_t
TestUnit.run
(void)
task void
testDone
(void)
Cleanup
task void
testAdd
(void)
Test adding of nodes to the list Add a number of nodes and check if it exists in the list right after insertion and when after all nodes have been added.
task void
testTimeout
(void)
Test node timeout Using a timer, try to simulate periodic adding of nodes and check that nodes are no longer reported as existing after
event result_t
Timer.fired
(void)
task void
checkTimeout
(void)
task void
testFull
(void)
Test add response for a full node list Check if the node list fails to add any new node after the maximum number of nodes the list can contain has been added.