line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Prove::Plugin::Count; |
2
|
2
|
|
|
2
|
|
5278
|
use 5.008001; |
|
2
|
|
|
|
|
7
|
|
3
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
39
|
|
4
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
87
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "0.02_02"; |
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
389
|
use App::Prove; |
|
2
|
|
|
|
|
31305
|
|
|
2
|
|
|
|
|
67
|
|
9
|
2
|
|
|
2
|
|
659
|
use Class::Method::Modifiers qw( around ); |
|
2
|
|
|
|
|
2624
|
|
|
2
|
|
|
|
|
107
|
|
10
|
2
|
|
|
2
|
|
561
|
use TAP::Formatter::Base; |
|
2
|
|
|
|
|
17985
|
|
|
2
|
|
|
|
|
266
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $total_file_count; |
13
|
|
|
|
|
|
|
my $current_file_count = 0; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub load { |
16
|
|
|
|
|
|
|
around 'App::Prove::_get_tests' => sub { |
17
|
1
|
|
|
1
|
|
488
|
my $orig = shift; |
18
|
1
|
|
|
|
|
5
|
my @tests = $orig->(@_); |
19
|
1
|
|
|
|
|
273
|
$total_file_count = scalar @tests; |
20
|
1
|
|
|
|
|
5
|
return @tests; |
21
|
1
|
|
|
1
|
0
|
29
|
}; |
22
|
|
|
|
|
|
|
around 'TAP::Formatter::Base::_format_name' => sub { |
23
|
2
|
|
|
2
|
|
1080970
|
my $orig = shift; |
24
|
2
|
|
|
|
|
16
|
my $ret = $orig->(@_); |
25
|
2
|
|
|
|
|
97
|
$current_file_count++; |
26
|
2
|
|
|
|
|
16
|
return "[$current_file_count/$total_file_count] $ret"; |
27
|
1
|
|
|
|
|
271
|
}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
__END__ |