line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Compare::Undef; |
2
|
100
|
|
|
100
|
|
1113
|
use strict; |
|
100
|
|
|
|
|
223
|
|
|
100
|
|
|
|
|
2521
|
|
3
|
100
|
|
|
100
|
|
577
|
use warnings; |
|
100
|
|
|
|
|
182
|
|
|
100
|
|
|
|
|
2665
|
|
4
|
|
|
|
|
|
|
|
5
|
100
|
|
|
100
|
|
481
|
use Carp qw/confess/; |
|
100
|
|
|
|
|
178
|
|
|
100
|
|
|
|
|
4382
|
|
6
|
|
|
|
|
|
|
|
7
|
100
|
|
|
100
|
|
517
|
use Test::Stream::Compare; |
|
100
|
|
|
|
|
199
|
|
|
100
|
|
|
|
|
641
|
|
8
|
|
|
|
|
|
|
use Test::Stream::HashBase( |
9
|
100
|
|
|
|
|
779
|
base => 'Test::Stream::Compare', |
10
|
|
|
|
|
|
|
accessors => [qw/negate/], |
11
|
100
|
|
|
100
|
|
564
|
); |
|
100
|
|
|
|
|
193
|
|
12
|
|
|
|
|
|
|
|
13
|
4
|
|
|
4
|
1
|
24
|
sub name { '' } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub operator { |
16
|
6
|
|
|
6
|
1
|
17
|
my $self = shift; |
17
|
|
|
|
|
|
|
|
18
|
6
|
100
|
|
|
|
32
|
return 'IS NOT' if $self->{+NEGATE}; |
19
|
4
|
|
|
|
|
17
|
return 'IS'; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub verify { |
23
|
546
|
|
|
546
|
1
|
721
|
my $self = shift; |
24
|
546
|
|
|
|
|
1667
|
my %params = @_; |
25
|
546
|
|
|
|
|
989
|
my ($got, $exists) = @params{qw/got exists/}; |
26
|
|
|
|
|
|
|
|
27
|
546
|
100
|
|
|
|
1151
|
return 0 unless $exists; |
28
|
|
|
|
|
|
|
|
29
|
544
|
100
|
|
|
|
2849
|
return !defined($got) unless $self->{+NEGATE}; |
30
|
5
|
|
|
|
|
25
|
return defined($got); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |