Ruby Coverage Validator - Functions
The Functions view displays statistics for each functions that is being
monitored for code coverage. The data is displayed in a tree format with the
top level showing class and the second level showing the functions and methods
in each class. The data can be displayed by Class, by Function, by File, by
number of lines in function. In the picture shown below, pink files have not
been visited, yellow files have been and cyan files have had every line visited.
Each line in the display shows the filename, number of source code lines in
the file (not the same as the number of lines in a file), number of lines
that have been visited, the total visit count for the file, and the percentage
of source code lines that have been visited for the file.
The colour coding
allows at a glance viewing of the code coverage of each file. The controls
at the bottom of the display allow the results to be sorted and to be viewed
graphically.
When a file is selected in the left hand pane, the source code
for that file is displayed in the right hand pane, with visited and unvisited
lines shown in the appropriate colours, so you can at-a-glance see which lines
have been visited.
A popup menu (right mouse button) allows each file to be
edited in a syntax coloured editor that highlights each line according to
the visit status of each line. The popup menu also provides options for controlling the expand and collapse
state of the tree control.
This picture shows the Functions view expanded to
show the methods in each class.


