Package datk :: Package tests :: Module tests
[hide private]
[frames] | no frames]

Module tests

source code

Algorithm Test Suite

Tests algorithms defined in algs.py

Functions [hide private]
 
configure_ipython()
Convenient helper function to determine if environment is IPython.
source code
 
LCR_UNI_RING() source code
 
LCR_BI_RING() source code
 
ASYNC_LCR_UNI_RING() source code
 
ASYNC_LCR_BI_RING() source code
 
FLOODMAX_UNI_RING() source code
 
FLOODMAX_BI_RING() source code
 
FLOODMAX_BI_LINE() source code
 
FLOODMAX_COMPLETE_GRAPH() source code
 
FLOODMAX_RANDOM_GRAPH() source code
 
SYNCH_BFS() source code
 
SYNCH_BFS_ACK() source code
 
SYNCH_CONVERGE_HEIGHT() source code
 
SYNCH_BROADCAST_HEIGHT() source code
 
ASYNCH_BROADCAST_HEIGHT() source code
 
send_receive_msgs() source code
 
SYNCH_DO_NOTHING() source code
 
COMPOSE_SYNCH_LCR_AND_DO_NOTHING() source code
 
COMPOSE_SYNCH_LCR() source code
 
CHAIN_BROADCAST_HEIGHT() source code
 
SYNCH_LUBY_MIS_BI_RING() source code
 
SYNCH_LUBY_MIS() source code
Variables [hide private]
  in_ipython = False
  TIMEOUT = 5
  __package__ = 'datk.tests'
Function Details [hide private]

configure_ipython()

source code 

Convenient helper function to determine if environment is IPython.

Sets matplotlib inline, if indeed in IPython Note that drawing is only safe in IPython qtconsole with matplotlib inline

Returns:
True iff environment is IPython

LCR_UNI_RING()

source code 
Decorators:
  • @test

LCR_BI_RING()

source code 
Decorators:
  • @test

ASYNC_LCR_UNI_RING()

source code 
Decorators:
  • @test

ASYNC_LCR_BI_RING()

source code 
Decorators:
  • @test

FLOODMAX_UNI_RING()

source code 
Decorators:
  • @test

FLOODMAX_BI_RING()

source code 
Decorators:
  • @test

FLOODMAX_BI_LINE()

source code 
Decorators:
  • @test

FLOODMAX_COMPLETE_GRAPH()

source code 
Decorators:
  • @test

FLOODMAX_RANDOM_GRAPH()

source code 
Decorators:
  • @test

SYNCH_BFS()

source code 
Decorators:
  • @test

SYNCH_BFS_ACK()

source code 
Decorators:
  • @test

SYNCH_CONVERGE_HEIGHT()

source code 
Decorators:
  • @test

SYNCH_BROADCAST_HEIGHT()

source code 
Decorators:
  • @test

ASYNCH_BROADCAST_HEIGHT()

source code 
Decorators:
  • @test

send_receive_msgs()

source code 
Decorators:
  • @test

SYNCH_DO_NOTHING()

source code 
Decorators:
  • @test

COMPOSE_SYNCH_LCR_AND_DO_NOTHING()

source code 
Decorators:
  • @test

COMPOSE_SYNCH_LCR()

source code 
Decorators:
  • @test

CHAIN_BROADCAST_HEIGHT()

source code 
Decorators:
  • @test

SYNCH_LUBY_MIS_BI_RING()

source code 
Decorators:
  • @test

SYNCH_LUBY_MIS()

source code 
Decorators:
  • @test