line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Prove::Plugin::Count; |
2
|
3
|
|
|
3
|
|
9807
|
use 5.008001; |
|
3
|
|
|
|
|
10
|
|
3
|
3
|
|
|
3
|
|
14
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
82
|
|
4
|
3
|
|
|
3
|
|
13
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
115
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "0.03"; |
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
302
|
use App::Prove; |
|
3
|
|
|
|
|
23087
|
|
|
3
|
|
|
|
|
110
|
|
9
|
3
|
|
|
3
|
|
820
|
use Class::Method::Modifiers qw( around ); |
|
3
|
|
|
|
|
3759
|
|
|
3
|
|
|
|
|
155
|
|
10
|
3
|
|
|
3
|
|
826
|
use TAP::Formatter::Base; |
|
3
|
|
|
|
|
23009
|
|
|
3
|
|
|
|
|
390
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $total_file_count; |
13
|
|
|
|
|
|
|
my $current_file_count = 0; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub load { |
16
|
|
|
|
|
|
|
around 'App::Prove::_get_tests' => sub { |
17
|
2
|
|
|
2
|
|
1015
|
my $orig = shift; |
18
|
2
|
|
|
|
|
11
|
my @tests = $orig->(@_); |
19
|
2
|
|
|
|
|
570
|
$total_file_count = scalar @tests; |
20
|
2
|
|
|
|
|
10
|
return @tests; |
21
|
2
|
|
|
2
|
0
|
67
|
}; |
22
|
|
|
|
|
|
|
around 'TAP::Formatter::Base::_format_name' => sub { |
23
|
12
|
|
|
12
|
|
4285709
|
my $orig = shift; |
24
|
12
|
|
|
|
|
87
|
my $ret = $orig->(@_); |
25
|
12
|
|
|
|
|
444
|
$current_file_count++; |
26
|
12
|
|
|
|
|
59
|
my $spacer = " " |
27
|
|
|
|
|
|
|
x ( length($total_file_count) - length($current_file_count) ); |
28
|
12
|
|
|
|
|
79
|
return "[$spacer$current_file_count/$total_file_count] $ret"; |
29
|
2
|
|
|
|
|
578
|
}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
__END__ |