line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Compare::Event; |
2
|
100
|
|
|
100
|
|
1071
|
use strict; |
|
100
|
|
|
|
|
183
|
|
|
100
|
|
|
|
|
2703
|
|
3
|
100
|
|
|
100
|
|
497
|
use warnings; |
|
100
|
|
|
|
|
195
|
|
|
100
|
|
|
|
|
2845
|
|
4
|
|
|
|
|
|
|
|
5
|
100
|
|
|
100
|
|
545
|
use Scalar::Util qw/blessed/; |
|
100
|
|
|
|
|
180
|
|
|
100
|
|
|
|
|
4696
|
|
6
|
|
|
|
|
|
|
|
7
|
100
|
|
|
100
|
|
56340
|
use Test::Stream::Compare::Object; |
|
100
|
|
|
|
|
257
|
|
|
100
|
|
|
|
|
738
|
|
8
|
100
|
|
|
100
|
|
54485
|
use Test::Stream::Compare::EventMeta; |
|
100
|
|
|
|
|
258
|
|
|
100
|
|
|
|
|
914
|
|
9
|
|
|
|
|
|
|
use Test::Stream::HashBase( |
10
|
100
|
|
|
|
|
681
|
base => 'Test::Stream::Compare::Object', |
11
|
|
|
|
|
|
|
accessors => [qw/etype/], |
12
|
100
|
|
|
100
|
|
575
|
); |
|
100
|
|
|
|
|
187
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub name { |
15
|
6
|
|
|
6
|
1
|
15
|
my $self = shift; |
16
|
6
|
|
|
|
|
25
|
my $etype = $self->etype; |
17
|
6
|
|
|
|
|
44
|
return "" |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
290
|
|
|
290
|
1
|
1348
|
sub meta_class { 'Test::Stream::Compare::EventMeta' } |
21
|
292
|
|
|
292
|
1
|
1483
|
sub object_base { 'Test::Stream::Event' } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub got_lines { |
24
|
9
|
|
|
9
|
1
|
20
|
my $self = shift; |
25
|
9
|
|
|
|
|
16
|
my ($event) = @_; |
26
|
9
|
100
|
|
|
|
25
|
return unless $event; |
27
|
8
|
100
|
|
|
|
39
|
return unless blessed($event); |
28
|
7
|
100
|
|
|
|
43
|
return unless $event->isa('Test::Stream::Event'); |
29
|
|
|
|
|
|
|
|
30
|
6
|
|
|
|
|
33
|
return ($event->debug->line); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |