BlockIt
blockit::Fortran::blocks::ParallelTestRunner Class Reference
Inheritance diagram for blockit::Fortran::blocks::ParallelTestRunner:
Collaboration diagram for blockit::Fortran::blocks::ParallelTestRunner:

List of all members.

Public Member Functions

def factory
def __init__
def show

Static Public Attributes

string BLOCKTYPE = 'ParallelTestRunner'
tuple KEYWORD = pp.Suppress(pp.CaselessKeyword(BLOCKTYPE))
 GRAMMAR = \
 SENTINEL = \

Private Attributes

 _argList

Detailed Description

Definition at line 2254 of file blocks.py.


Constructor & Destructor Documentation

def blockit::Fortran::blocks::ParallelTestRunner::__init__ (   self,
  parameters 
)
A test runner block:

ParallelTestRunner(prefix)
end ParallelTestRunner

This block gathers all functions that start with `prefix` in the
module found in the sole use statement of the enclosing block.  If no
use statement is found in the enclosing block, it traverses up its
block tree to find the enclosing module it is contained in and uses
that for the function finding.  It then creates the following pattern
in its show method for each function it finds:

call setUp(<function name as string here>)
if(.not. <function with call signature as found in module>) then
   print *,'Test <function name> : failed'
else
   print *,'Test <function name> : passed'
endif
call tearDown(<function name as string here>)

Input
-----
parameters : the groups from the factory static method

Definition at line 2281 of file blocks.py.


Member Function Documentation

def blockit::Fortran::blocks::ParallelTestRunner::factory (   s,
  lineNo,
  tokens 
)
Factory method called by the BlockParser to produce an
instance of the class.

Definition at line 2271 of file blocks.py.

def blockit::Fortran::blocks::ParallelTestRunner::show (   self,
  mangle = False 
)
Create block of test running code.

Reimplemented from blockit::Fortran::blocks::FortranBlock.

Definition at line 2310 of file blocks.py.


Member Data Documentation

Reimplemented from blockit::blocks::Block.

Definition at line 2260 of file blocks.py.

tuple blockit::Fortran::blocks::ParallelTestRunner::KEYWORD = pp.Suppress(pp.CaselessKeyword(BLOCKTYPE)) [static]

Definition at line 2259 of file blocks.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties