C0 code coverage information

Generated on Mon Aug 13 01:18:55 -0400 2007 with rcov 0.8.0


Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
Name Total lines Lines of code Total coverage Code coverage
lib/spec/runner/formatter/base_formatter.rb 76 33
100.0% 
100.0% 
 1 module Spec
 2   module Runner
 3     module Formatter
 4       # Baseclass for formatters that implements all required methods as no-ops. 
 5       class BaseFormatter
 6         def initialize(where)
 7           @where = where
 8         end
 9         
10         # This method is invoked before any examples are run, right after
11         # they have all been collected. This can be useful for special
12         # formatters that need to provide progress on feedback (graphical ones)
13         #
14         # This method will only be invoked once, and the next one to be invoked
15         # is #add_behaviour
16         def start(example_count)
17         end
18 
19         # This method is invoked at the beginning of the execution of each behaviour.
20         # +name+ is the name of the behaviour and +first+ is true if it is the
21         # first behaviour - otherwise it's false.
22         #
23         # The next method to be invoked after this is #example_failed or #example_finished
24         def add_behaviour(name)
25         end
26 
27         # This method is invoked when an +example+ starts.
28         def example_started(example)
29         end
30 
31         # This method is invoked when an +example+ passes.
32         def example_passed(example)
33         end
34 
35         # This method is invoked when an +example+ fails, i.e. an exception occurred
36         # inside it (such as a failed should or other exception). +counter+ is the 
37         # sequence number of the failure (starting at 1) and +failure+ is the associated 
38         # Failure object.
39         def example_failed(example, counter, failure)
40         end
41         
42         # This method is invoked when an example is not yet implemented (i.e. has not
43         # been provided a block), or when an ExamplePendingError is raised.
44         # +name+ is the name of the example.
45         # +message+ is the message from the ExamplePendingError, if it exists, or the
46         # default value of "Not Yet Implemented"
47         def example_pending(behaviour_name, example_name, message)
48         end
49 
50         # This method is invoked after all of the examples have executed. The next method
51         # to be invoked after this one is #dump_failure (once for each failed example),
52         def start_dump
53         end
54 
55         # Dumps detailed information about an example failure.
56         # This method is invoked for each failed example after all examples have run. +counter+ is the sequence number
57         # of the associated example. +failure+ is a Failure object, which contains detailed
58         # information about the failure.
59         def dump_failure(counter, failure)
60         end
61       
62         # This method is invoked after the dumping of examples and failures.
63         def dump_summary(duration, example_count, failure_count, pending_count)
64         end
65         
66         # This gets invoked after the summary if option is set to do so.
67         def dump_pending
68         end
69 
70         # This method is invoked at the very end. Allows the formatter to clean up, like closing open streams.
71         def close
72         end
73       end
74     end
75   end
76 end

Generated using the rcov code coverage analysis tool for Ruby version 0.8.0.

Valid XHTML 1.0! Valid CSS!