MatrixBerryCore
Public Member Functions | Private Attributes | List of all members
mxberry::unittest::TestCase Class Reference
Inheritance diagram for mxberry::unittest::TestCase:
Inheritance graph
[legend]
Collaboration diagram for mxberry::unittest::TestCase:
Collaboration graph
[legend]

Public Member Functions

function runAndCheckError (in self, in commandStr, in expIdentifierList, in varargin)
 RUNANDCHECKERROR executes the specifies command and checks that it throws an exeption with an identifier containing the specified marker. More...
 
function checkCode (in inpMeObj, in fieldName, in codeList)
 
function getIsCodeMatch (in inpMeObj, in checkDepth, in fieldName, in codeStr)
 
function runAndMeasureTime (in self, in varargin)
 RUNANDMEASURETIME executes the specified command and displayes a profiling report using the specified name as a marker. More...
 

Private Attributes

Property PROF_MODE
 
Property PROF_DIR
 

Detailed Description

Author
Peter Gagarinov, PhD pgaga.nosp@m.rino.nosp@m.v@gma.nosp@m.il.c.nosp@m.om

Definition at line 7 of file TestCase.m.

Member Function Documentation

◆ checkCode()

function mxberry::unittest::TestCase::checkCode ( in  inpMeObj,
in  fieldName,
in  codeList 
)

◆ getIsCodeMatch()

function mxberry::unittest::TestCase::getIsCodeMatch ( in  inpMeObj,
in  checkDepth,
in  fieldName,
in  codeStr 
)

◆ runAndCheckError()

function mxberry::unittest::TestCase::runAndCheckError ( in  self,
in  commandStr,
in  expIdentifierList,
in  varargin 
)

RUNANDCHECKERROR executes the specifies command and checks that it throws an exeption with an identifier containing the specified marker.

*  Input:
*    regular:
*        self:
*        commandStr: char[1,]/function_handle[1,1] - command to
*                    execute
*        expIdentifierList: double[0,0]/char[1,]/. . .
*          cell[1,N] of char[1,] - list of of strings
*            (a single string), containig expected exeption
*            identifier markers. double[0,0] means that no
*            identifier match is performed.
* 
* 
*    optional:
*        expMsgCodeList: char[1,]/cell[1,N] of char[1,] - list
*            of strings (a single string)
*            containig expected exception message
*            markers. For each field in expIdentifierList supposed
*            to be one field in expMsgCodeList. In case of more then
*            one argument in expIdentifierList, if you don't expect
*            any exception messages, put '' in corresponding
*            field. double[0,0] means that no identifier match
*            is performed
* 
*    properties:
*        causeCheckDepth: double[1,1] - depth at which causes of
*           the given exception are checked for matching the
*           specified patters, default value is 0 (no cause is
*           checked)
* 
*        reportStr: char[1,] - report, published upon test
*            failure
* 
Author
Peter Gagarinov, PhD pgaga.nosp@m.rino.nosp@m.v@gma.nosp@m.il.c.nosp@m.om

◆ runAndMeasureTime()

function mxberry::unittest::TestCase::runAndMeasureTime ( in  self,
in  varargin 
)

RUNANDMEASURETIME executes the specified command and displayes a profiling report using the specified name as a marker.

*  Input:
*    regular:
*        self:
*        fRun: function_handle[1,] - function to execute
*    optional:
*        profCaseName: char[1,] - name of profiling case
* 
*    properties:
*        nRuns: numeric[1,1] - number of runs (1 by default)
*        useMedianTime: logical [1,1] - if true, then median
*            time of calculation is returned for all runs
* 

Member Data Documentation

◆ PROF_DIR

Property mxberry::unittest::TestCase::PROF_DIR
private

Definition at line 14 of file TestCase.m.

◆ PROF_MODE

Property mxberry::unittest::TestCase::PROF_MODE
private

Definition at line 12 of file TestCase.m.


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