|
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...
|
|
- Author
- Peter Gagarinov, PhD pgaga.nosp@m.rino.nosp@m.v@gma.nosp@m.il.c.nosp@m.om
- Copyright
- 2015-2016 Peter Gagarinov, PhD
2012-2015 Moscow State University,
Faculty of Applied Mathematics and Computer Science,
System Analysis Department
Definition at line 7 of file TestCase.m.
◆ 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
- Copyright
- 2015-2016 Peter Gagarinov, PhD
2012-2015 Moscow State University
Faculty of Applied Mathematics and Computer Science
System Analysis Department
◆ 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
*
◆ PROF_DIR
Property mxberry::unittest::TestCase::PROF_DIR |
|
private |
◆ PROF_MODE
Property mxberry::unittest::TestCase::PROF_MODE |
|
private |
The documentation for this class was generated from the following file: