Table of Contents

Class: result benchmark.py

Result

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__
__init__
abort
add_answer
add_error
count_cases
count_errors
number_of_errors
run_cases
start
stop
  __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 )


Table of Contents

This document was automatically generated on Fri Apr 4 16:51:01 2003 by Christian Søttrupusing HappyDoc version 2.1