File Coverage

blib/lib/Test/Run/Plugin/CollectStats/TestFileData.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Test::Run::Plugin::CollectStats::TestFileData;
2              
3 2     2   14 use strict;
  2         5  
  2         57  
4 2     2   10 use warnings;
  2         4  
  2         56  
5              
6 2     2   15 use Moose;
  2         3  
  2         13  
7              
8             =head1 NAME
9              
10             Test::Run::Plugin::CollectStats::TestFileData - an object representing the
11             data for a single test file in Test::Run.
12              
13             =head1 VERSION
14              
15             Version 0.0104
16              
17             =cut
18              
19             extends('Test::Run::Base::Struct');
20              
21             has 'elapsed_time' => (is => "rw", isa => "Str");
22             has 'results' => (is => "rw", isa => "Test::Run::Straps::StrapsTotalsObj");
23             has 'summary_object' => (is => "rw", isa => "Test::Run::Obj::TestObj");
24              
25             1;
26              
27             __END__
28              
29             =head1 METHODS
30              
31             =head2 $test_file_data->elapsed_time()
32              
33             The elapsed time in seconds, with a leading space. Could have a fraction if
34             L<Time::HiRes> is installed or could be "<1" if less than one second.
35              
36             =head2 $test_file_data->results()
37              
38             The L<Test::Run::Straps::StrapsTotalsObj> object representing the test file
39             totals information.
40              
41             =head2 $test_file_data->summary_object()
42              
43             The L<Test::Run::Obj::TestObj> object that summarizes and analzes the
44             results.
45              
46             =head1 AUTHOR
47              
48             Shlomi Fish, C<< <shlomif at cpan.org> >>
49              
50             =head1 ACKNOWLEDGEMENTS
51              
52             =head1 COPYRIGHT & LICENSE
53              
54             Copyright 2007 Shlomi Fish.
55              
56             This program is released under the following license: MIT/Expat.
57              
58             =cut
59