An instance collecting the results of a benchmark run (case or suite)
The output of a case is a tuple and that of a suite a list of tuples.
All error messages are also saved.
|
Methods
|
|
|
|
|
|
__getinitargs__
|
__getinitargs__ ( self )
|
|
|
__init__
|
__init__ ( self )
initializes data structurs
|
|
|
abort
|
abort ( self, benchmark )
Indicates that the whole benchmark run should be aborted
|
|
|
add_answer
|
add_answer (
self,
benchmark,
answer,
)
appends answer tuple to answer list
|
|
|
add_error
|
add_error (
self,
benchmark,
error,
)
appends error tuple to error list
|
|
|
count_cases
|
count_cases ( self, tuple )
counts the number of cases in a tuple recursively (a suite may contain a suite of suites and so on)
|
|
|
count_errors
|
count_errors ( self, tuple )
counts the number of errors in a tuple recursively
|
|
|
number_of_errors
|
number_of_errors ( self )
counts errors in a list of error tuples
|
|
|
run_cases
|
run_cases ( self )
counts the number of cases in a list of case/suite tuples
|
|
|
start
|
start ( self, benchmark )
|
|
|
stop
|
stop ( self, benchmark )
|