::xounit
Class TestPass

Heritage:
::xotcl::Object
  |
  +--::xox::Node
        |
        +--::xounit::TestResult
Class TestPass
superclass ::xounit::TestResult,
TestFailure is a datastructure to hold information
 about a test passing.  It contains the information
 about the name of the test, the specific test component,
 and the return value received from the test.
Variables
NameDefault ValueClassComment
name    ::xounit::TestResult
 name of the test
nodeName    ::xox::Node
 
return  ""  ::xounit::TestPass
 returned string from the test
test  ""  ::xounit::TestPass
 name of the test component
testedClass  ""  ::xounit::TestResult
 the class tested
testedMethod  ""  ::xounit::TestResult
 the method tested
testedObject  ""  ::xounit::TestResult
 the object tested
 
Methods
NameComment
message {}   returns the returned string
numberOfErrors {}   returns the number of errors in this TestResult
numberOfFailures {}   returns the number of failures in this TestResult
numberOfPasses {}   returns the number of passes in this TestResult
numberOfTests {}   returns the number of tests in this TestResult
passed {}   returns 1 (true)
   
Methods from ::xounit::TestResult
addNewResult, addResult, deepErrors, deepFailures, deepPasses, errors, failures, numberOfErrors, numberOfFailures, numberOfPasses, numberOfTests, passPercent, passed, passes, results, tests,
   
Methods from ::xotcl::Object
#, ., ?, ?code, ?methods, ?object, abstract, copy, coverageFilter, defaultmethod, extractConfigureArg, filterappend, garbageCollect, get#, getClean#, hasclass, init, methodTag, mixinappend, move, profileFilter, self, setParameterDefaults, shell, tclcmd, traceFilter,
 
Instproc Detail

message

Description:
 returns the returned string
Code:
  ::xounit::TestPass instproc message {}  {
   

        return [ my return ] 
    
}

numberOfErrors

Description:
 returns the number of errors in this TestResult
Overrides:
numberOfErrors in ::xounit::TestResult
Code:
  ::xounit::TestPass instproc numberOfErrors {}  {
   

        return 0
    
}

numberOfFailures

Description:
 returns the number of failures in this TestResult
Overrides:
numberOfFailures in ::xounit::TestResult
Code:
  ::xounit::TestPass instproc numberOfFailures {}  {
   

        return 0
    
}

numberOfPasses

Description:
 returns the number of passes in this TestResult
Overrides:
numberOfPasses in ::xounit::TestResult
Code:
  ::xounit::TestPass instproc numberOfPasses {}  {
   

        return 1
    
}

numberOfTests

Description:
 returns the number of tests in this TestResult
Overrides:
numberOfTests in ::xounit::TestResult
Code:
  ::xounit::TestPass instproc numberOfTests {}  {
   

        return 1
    
}

passed

Description:
 returns 1  (true)
Overrides:
passed in ::xounit::TestResult
Code:
  ::xounit::TestPass instproc passed {}  {
   

        return 1
    
}