line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Compare::Event; |
2
|
168
|
|
|
168
|
|
1086
|
use strict; |
|
168
|
|
|
|
|
331
|
|
|
168
|
|
|
|
|
4582
|
|
3
|
168
|
|
|
168
|
|
809
|
use warnings; |
|
168
|
|
|
|
|
318
|
|
|
168
|
|
|
|
|
4414
|
|
4
|
|
|
|
|
|
|
|
5
|
168
|
|
|
168
|
|
832
|
use Scalar::Util qw/blessed/; |
|
168
|
|
|
|
|
382
|
|
|
168
|
|
|
|
|
6821
|
|
6
|
|
|
|
|
|
|
|
7
|
168
|
|
|
168
|
|
62544
|
use Test2::Compare::EventMeta(); |
|
168
|
|
|
|
|
399
|
|
|
168
|
|
|
|
|
3598
|
|
8
|
|
|
|
|
|
|
|
9
|
168
|
|
|
168
|
|
943
|
use base 'Test2::Compare::Object'; |
|
168
|
|
|
|
|
389
|
|
|
168
|
|
|
|
|
68503
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '0.000153'; |
12
|
|
|
|
|
|
|
|
13
|
168
|
|
|
168
|
|
1155
|
use Test2::Util::HashBase qw/etype/; |
|
168
|
|
|
|
|
407
|
|
|
168
|
|
|
|
|
737
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub name { |
16
|
5
|
|
|
5
|
1
|
15
|
my $self = shift; |
17
|
5
|
|
|
|
|
16
|
my $etype = $self->etype; |
18
|
5
|
|
|
|
|
29
|
return ""; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
2194
|
|
|
2194
|
1
|
7561
|
sub meta_class { 'Test2::Compare::EventMeta' } |
22
|
2198
|
|
|
2198
|
1
|
8907
|
sub object_base { 'Test2::Event' } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub got_lines { |
25
|
8
|
|
|
8
|
1
|
83
|
my $self = shift; |
26
|
8
|
|
|
|
|
29
|
my ($event) = @_; |
27
|
8
|
100
|
|
|
|
24
|
return unless $event; |
28
|
7
|
100
|
|
|
|
30
|
return unless blessed($event); |
29
|
6
|
100
|
|
|
|
50
|
return unless $event->isa('Test2::Event'); |
30
|
5
|
50
|
|
|
|
21
|
return unless $event->trace; |
31
|
|
|
|
|
|
|
|
32
|
5
|
|
|
|
|
25
|
return ($event->trace->line); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |