line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Compare::Event; |
2
|
169
|
|
|
169
|
|
1197
|
use strict; |
|
169
|
|
|
|
|
384
|
|
|
169
|
|
|
|
|
5138
|
|
3
|
169
|
|
|
169
|
|
858
|
use warnings; |
|
169
|
|
|
|
|
336
|
|
|
169
|
|
|
|
|
4402
|
|
4
|
|
|
|
|
|
|
|
5
|
169
|
|
|
169
|
|
926
|
use Scalar::Util qw/blessed/; |
|
169
|
|
|
|
|
398
|
|
|
169
|
|
|
|
|
7056
|
|
6
|
|
|
|
|
|
|
|
7
|
169
|
|
|
169
|
|
71864
|
use Test2::Compare::EventMeta(); |
|
169
|
|
|
|
|
421
|
|
|
169
|
|
|
|
|
3842
|
|
8
|
|
|
|
|
|
|
|
9
|
169
|
|
|
169
|
|
1010
|
use base 'Test2::Compare::Object'; |
|
169
|
|
|
|
|
295
|
|
|
169
|
|
|
|
|
77543
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '0.000156'; |
12
|
|
|
|
|
|
|
|
13
|
169
|
|
|
169
|
|
1236
|
use Test2::Util::HashBase qw/etype/; |
|
169
|
|
|
|
|
704
|
|
|
169
|
|
|
|
|
774
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub name { |
16
|
5
|
|
|
5
|
1
|
26
|
my $self = shift; |
17
|
5
|
|
|
|
|
21
|
my $etype = $self->etype; |
18
|
5
|
|
|
|
|
52
|
return ""; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
2206
|
|
|
2206
|
1
|
7105
|
sub meta_class { 'Test2::Compare::EventMeta' } |
22
|
2210
|
|
|
2210
|
1
|
9619
|
sub object_base { 'Test2::Event' } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub got_lines { |
25
|
8
|
|
|
8
|
1
|
86
|
my $self = shift; |
26
|
8
|
|
|
|
|
21
|
my ($event) = @_; |
27
|
8
|
100
|
|
|
|
31
|
return unless $event; |
28
|
7
|
100
|
|
|
|
39
|
return unless blessed($event); |
29
|
6
|
100
|
|
|
|
41
|
return unless $event->isa('Test2::Event'); |
30
|
5
|
50
|
|
|
|
19
|
return unless $event->trace; |
31
|
|
|
|
|
|
|
|
32
|
5
|
|
|
|
|
35
|
return ($event->trace->line); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |