Changeset 104 for trunk

Show
Ignore:
Timestamp:
10/19/10 14:52:12 (19 months ago)
Author:
mgalloy
Message:

Updating comment headers.

Location:
trunk/src
Files:
10 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/assert.pro

    r90 r104  
    22 
    33;+ 
    4 ; Raises an error if the given condition is not met. Uses logical_predicate 
     4; Raises an error if the given condition is not met. Uses `logical_predicate` 
    55; to determine truth of condition: so zero or null values are false, anything 
    66; else is true. Be careful of conditions like:: 
    77;      
    88;    assert, not file_test(filename) 
     9; 
     10; which use bitwise operators (the above is always false). 
    911; 
    1012; :Params:  
  • trunk/src/mgunit_wrapper.pro

    r82 r104  
    22 
    33;+ 
    4 ; Command line wrapper for mgunit. This routine is made to be called from the 
    5 ; mgunit shell script. 
     4; Command line wrapper for `mgunit`. This routine is made to be called from  
     5; the `mgunit` shell script. 
    66;- 
    77pro mgunit_wrapper 
  • trunk/src/mgutclirunner__define.pro

    r88 r104  
    33;+ 
    44; Results for tests, test cases, and test suites are reported to the test  
    5 ; runner. The MGutCliRunner displays the results in the output log or in a  
     5; runner. The `MGutCliRunner` displays the results in the output log or in a  
    66; log file. 
    77;- 
     
    184184; :Keywords: 
    185185;    _extra : in, optional, type=keywords 
    186 ;       keywords to MG_ANSICODE i.e. RED or GREEN 
     186;       keywords to `MG_ANSICODE`, i.e., `RED` or `GREEN` 
    187187;- 
    188188pro mgutclirunner::_print, lun, text, _extra=e 
     
    239239;    filename : in, optional, type=string  
    240240;       if present, output is sent to that file, otherwise output is sent to  
    241 ;       stdout 
     241;       `stdout` 
    242242;    color : in, optional, type=boolean 
    243243;       set to print color output 
     
    281281;    space 
    282282;       byte value of the space character 
     283;    isTty 
     284;       whether the `mgunit` believes it is running in a TTY terminal or not 
    283285;- 
    284286pro mgutclirunner__define 
  • trunk/src/mgutcompoundrunner__define.pro

    r88 r104  
    33;+ 
    44; Results for tests, test cases, and test suites are reported to the test  
    5 ; runner. The MGutHTMLRunner displays the results in the output HTML file. 
     5; runner. The `MGutCompoundRunner` allows results to be sent to multiple 
     6; test runners, e.g., to the display and to a file. 
    67;- 
    78 
     
    178179;    filename : in, optional, type=string 
    179180;       if present, output is sent that file, otherwise output is sent to  
    180 ;       stdout 
     181;       `stdout` 
    181182;- 
    182183function mgutcompoundrunner::init, filename=filename, _extra=e 
  • trunk/src/mgutguirunner__define.pro

    r88 r104  
    33;+ 
    44; Results for tests, test cases, and test suites are reported to the test  
    5 ; runner. The mgutguirunner displays the results in the output log or in a  
    6 ; log file. 
     5; runner. The `MGutGUIRunner` displays the results in an interactive GUI. 
    76;- 
    87 
     
    324323;    tlb 
    325324;       top-level base of GUI 
     325;    toolbar 
     326;       base widget containing toolbar items 
    326327;    text 
     328;       text widget displaying results 
    327329;    continued 
     330;    cleared 
     331;    indent 
     332;    space 
    328333;- 
    329334pro mgutguirunner__define 
  • trunk/src/mguthtmlrunner__define.pro

    r88 r104  
    33;+ 
    44; Results for tests, test cases, and test suites are reported to the test  
    5 ; runner. The MGutHTMLRunner displays the results in the output HTML file. 
     5; runner. The `MGutHTMLRunner` displays the results in the output HTML file. 
    66;- 
    77 
     
    210210;    filename : in, optional, type=string 
    211211;       if present, output is sent that file, otherwise output is sent to  
    212 ;       stdout 
     212;       `stdout` 
    213213;    color : in, optional, type=boolean 
    214214;       unused for MGutHtmlRunner 
  • trunk/src/mgutjunitrunner__define.pro

    r88 r104  
    33;+ 
    44; Results for tests, test cases, and test suites are reported to the test  
    5 ; runner. The mgutjunitrunner displays the results in the output HTML file. 
     5; runner. The `MGutJUnitRunner` displays the results in the output XML file.  
     6; For example, a test that normally runs like:: 
     7; 
     8;    IDL> mgunit, 'gpuradon_ut'         
     9;    "All tests" test suite starting (1 test suite/case, 2 tests) 
     10;       "gpuradon_ut" test case starting (2 tests) 
     11;          test_basic_backprojection: passed (0.158287 seconds) 
     12;          test_basic_forward: failed "incorrect result" (0.005014 seconds) 
     13;       Results: 1 / 2 tests passed, 0 skipped 
     14;    Results: 1 / 2 tests passed, 0 skipped 
     15; 
     16; With `MGutJUnitRunner`, it would produce output like:: 
     17; 
     18;    IDL> mgunit, 'gpuradon_ut', /junit         
     19;    <testsuites name="All tests"> 
     20;      <testsuite name="gpuradon_ut"> 
     21;        <testcase name="test_basic_backprojection"> 
     22;        </testcase> 
     23;        <testcase name="test_basic_forward"> 
     24;          <failure>incorrect result</failure> 
     25;        </testcase> 
     26;      </testsuite> 
     27;    </testsuites> 
    628;- 
    729 
     
    202224;    filename : in, optional, type=string 
    203225;       if present, output is sent that file, otherwise output is sent to  
    204 ;       stdout 
     226;       `stdout` 
    205227;    color : in, optional, type=boolean 
    206228;       unused for mgutjunitrunner 
  • trunk/src/mguttestcase__define.pro

    r90 r104  
    22 
    33;+ 
    4 ; Subclass MGtestCase to actually write tests. Any function method whose name  
    5 ; starts with "test" will be considered a test. Tests are executed and results  
    6 ; are reported to the test runner object. 
     4; Subclass `MGutTestCase` to actually write tests. Any function method whose  
     5; name starts with "test" will be considered a test. Tests are executed and  
     6; results are reported to the test runner object. 
    77;- 
    88 
     
    3636 
    3737;+ 
    38 ; This is a safe place to actually run a single test. Any errors that occur are 
    39 ; assumed to be from the test and recorded as a failure for it. 
     38; This is a safe place to actually run a single test. Any errors that occur  
     39; are assumed to be from the test and recorded as a failure for it. 
    4040; 
    4141; :Returns:  
     
    138138   
    139139;+ 
    140 ; Run the tests for this class (i.e. methods with names that start with "test"). 
     140; Run the tests for this class (i.e. methods with names that start with  
     141; "test"). 
    141142;- 
    142143pro mguttestcase::run 
     
    304305; :Keywords: 
    305306;    test_runner : in, required, type=object 
    306 ;       subclass of MGutTestRunner 
     307;       subclass of `MGutTestRunner` 
    307308;- 
    308309function mguttestcase::init, test_runner=testRunner 
     
    325326; :Fields: 
    326327;    testRunner  
    327 ;       subclass of MGtestRunner 
     328;       subclass of `MGtestRunner` 
    328329;    testnames  
    329330;       pointer to string array of method names that start with "test" 
  • trunk/src/mguttestsuite__define.pro

    r88 r104  
    22 
    33;+ 
    4 ; Test suites are containers for test cases. Either subclass MGutTestSuite and  
    5 ; add test suites/test cases in its init method or create a MGutTestSuite and  
    6 ; use the add method to add test suites/cases. 
     4; Test suites are containers for test cases. Either subclass `MGutTestSuite`  
     5; and add test suites/test cases in its `init` method or create an  
     6; `MGutTestSuite` and use the `add` method to add test suites/cases. 
    77;- 
    88 
  • trunk/src/mgutxmlrunner__define.pro

    r89 r104  
    33;+ 
    44; Results for tests, test cases, and test suites are reported to the test  
    5 ; runner. The mgutxmlrunner displays the results in the output HTML file. 
     5; runner. The `MGutXMLRunner` displays the results in the output XML file. 
    66;- 
    77 
     
    164164; :Keywords: 
    165165;    _extra : in, optional, type=keywords 
    166 ;       keywords to MG_ANSICODE i.e. RED or GREEN 
     166;       keywords to `MG_ANSICODE`, i.e., `RED` or `GREEN` 
    167167;- 
    168168pro mgutxmlrunner::_print, lun, text, level=level, _extra=e 
     
    194194;    filename : in, optional, type=string 
    195195;       if present, output is sent that file, otherwise output is sent to  
    196 ;       stdout 
     196;       `stdout` 
    197197;    color : in, optional, type=boolean 
    198 ;       unused for mgutxmlrunner 
     198;       unused for `MGutXMLRunner` 
    199199;    _extra : in, optional, type=keywords 
    200 ;       keywords to MGutTestRunner::init 
     200;       keywords to `MGutTestRunner::init` 
    201201;- 
    202202function mgutxmlrunner::init, filename=filename, color=color, _extra=e