line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Compare::Event; |
2
|
169
|
|
|
169
|
|
1169
|
use strict; |
|
169
|
|
|
|
|
339
|
|
|
169
|
|
|
|
|
4905
|
|
3
|
169
|
|
|
169
|
|
848
|
use warnings; |
|
169
|
|
|
|
|
337
|
|
|
169
|
|
|
|
|
4644
|
|
4
|
|
|
|
|
|
|
|
5
|
169
|
|
|
169
|
|
946
|
use Scalar::Util qw/blessed/; |
|
169
|
|
|
|
|
408
|
|
|
169
|
|
|
|
|
7437
|
|
6
|
|
|
|
|
|
|
|
7
|
169
|
|
|
169
|
|
70134
|
use Test2::Compare::EventMeta(); |
|
169
|
|
|
|
|
429
|
|
|
169
|
|
|
|
|
3844
|
|
8
|
|
|
|
|
|
|
|
9
|
169
|
|
|
169
|
|
1024
|
use base 'Test2::Compare::Object'; |
|
169
|
|
|
|
|
318
|
|
|
169
|
|
|
|
|
74982
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '0.000155'; |
12
|
|
|
|
|
|
|
|
13
|
169
|
|
|
169
|
|
1233
|
use Test2::Util::HashBase qw/etype/; |
|
169
|
|
|
|
|
373
|
|
|
169
|
|
|
|
|
741
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub name { |
16
|
5
|
|
|
5
|
1
|
26
|
my $self = shift; |
17
|
5
|
|
|
|
|
28
|
my $etype = $self->etype; |
18
|
5
|
|
|
|
|
36
|
return ""; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
2194
|
|
|
2194
|
1
|
7659
|
sub meta_class { 'Test2::Compare::EventMeta' } |
22
|
2198
|
|
|
2198
|
1
|
9103
|
sub object_base { 'Test2::Event' } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub got_lines { |
25
|
8
|
|
|
8
|
1
|
86
|
my $self = shift; |
26
|
8
|
|
|
|
|
19
|
my ($event) = @_; |
27
|
8
|
100
|
|
|
|
23
|
return unless $event; |
28
|
7
|
100
|
|
|
|
34
|
return unless blessed($event); |
29
|
6
|
100
|
|
|
|
44
|
return unless $event->isa('Test2::Event'); |
30
|
5
|
50
|
|
|
|
23
|
return unless $event->trace; |
31
|
|
|
|
|
|
|
|
32
|
5
|
|
|
|
|
31
|
return ($event->trace->line); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |