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

List of all members.

Public Member Functions

def factory
def __init__
def show

Static Public Attributes

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

Private Attributes

 _argList

Detailed Description

Definition at line 2110 of file blocks.py.


Constructor & Destructor Documentation

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

TestRunner(prefix)
end TestRunner

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 2137 of file blocks.py.


Member Function Documentation

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

Definition at line 2127 of file blocks.py.

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

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

Definition at line 2166 of file blocks.py.


Member Data Documentation

Definition at line 2161 of file blocks.py.

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

Definition at line 2114 of file blocks.py.

Reimplemented from blockit::blocks::Block.

Definition at line 2116 of file blocks.py.

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

Definition at line 2115 of file blocks.py.

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

Definition at line 2120 of file blocks.py.


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