line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Compare::Event; |
2
|
100
|
|
|
100
|
|
1089
|
use strict; |
|
100
|
|
|
|
|
186
|
|
|
100
|
|
|
|
|
2578
|
|
3
|
100
|
|
|
100
|
|
522
|
use warnings; |
|
100
|
|
|
|
|
194
|
|
|
100
|
|
|
|
|
2878
|
|
4
|
|
|
|
|
|
|
|
5
|
100
|
|
|
100
|
|
505
|
use Scalar::Util qw/blessed/; |
|
100
|
|
|
|
|
181
|
|
|
100
|
|
|
|
|
4511
|
|
6
|
|
|
|
|
|
|
|
7
|
100
|
|
|
100
|
|
56125
|
use Test::Stream::Compare::Object; |
|
100
|
|
|
|
|
265
|
|
|
100
|
|
|
|
|
736
|
|
8
|
100
|
|
|
100
|
|
54804
|
use Test::Stream::Compare::EventMeta; |
|
100
|
|
|
|
|
245
|
|
|
100
|
|
|
|
|
1074
|
|
9
|
|
|
|
|
|
|
use Test::Stream::HashBase( |
10
|
100
|
|
|
|
|
689
|
base => 'Test::Stream::Compare::Object', |
11
|
|
|
|
|
|
|
accessors => [qw/etype/], |
12
|
100
|
|
|
100
|
|
581
|
); |
|
100
|
|
|
|
|
198
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub name { |
15
|
6
|
|
|
6
|
1
|
14
|
my $self = shift; |
16
|
6
|
|
|
|
|
27
|
my $etype = $self->etype; |
17
|
6
|
|
|
|
|
44
|
return "" |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
290
|
|
|
290
|
1
|
1349
|
sub meta_class { 'Test::Stream::Compare::EventMeta' } |
21
|
292
|
|
|
292
|
1
|
1559
|
sub object_base { 'Test::Stream::Event' } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub got_lines { |
24
|
9
|
|
|
9
|
1
|
24
|
my $self = shift; |
25
|
9
|
|
|
|
|
15
|
my ($event) = @_; |
26
|
9
|
100
|
|
|
|
27
|
return unless $event; |
27
|
8
|
100
|
|
|
|
41
|
return unless blessed($event); |
28
|
7
|
100
|
|
|
|
44
|
return unless $event->isa('Test::Stream::Event'); |
29
|
|
|
|
|
|
|
|
30
|
6
|
|
|
|
|
33
|
return ($event->debug->line); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |