line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Compare::Undef; |
2
|
168
|
|
|
168
|
|
1074
|
use strict; |
|
168
|
|
|
|
|
323
|
|
|
168
|
|
|
|
|
4757
|
|
3
|
168
|
|
|
168
|
|
886
|
use warnings; |
|
168
|
|
|
|
|
361
|
|
|
168
|
|
|
|
|
4407
|
|
4
|
|
|
|
|
|
|
|
5
|
168
|
|
|
168
|
|
856
|
use Carp qw/confess/; |
|
168
|
|
|
|
|
317
|
|
|
168
|
|
|
|
|
7127
|
|
6
|
|
|
|
|
|
|
|
7
|
168
|
|
|
168
|
|
882
|
use base 'Test2::Compare::Base'; |
|
168
|
|
|
|
|
333
|
|
|
168
|
|
|
|
|
17289
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.000153'; |
10
|
|
|
|
|
|
|
|
11
|
168
|
|
|
168
|
|
1068
|
use Test2::Util::HashBase; |
|
168
|
|
|
|
|
430
|
|
|
168
|
|
|
|
|
1181
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# Overloads '!' for us. |
14
|
168
|
|
|
168
|
|
14148
|
use Test2::Compare::Negatable; |
|
168
|
|
|
|
|
426
|
|
|
168
|
|
|
|
|
1040
|
|
15
|
|
|
|
|
|
|
|
16
|
4
|
|
|
4
|
1
|
295
|
sub name { '' } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub operator { |
19
|
6
|
|
|
6
|
1
|
213
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
6
|
100
|
|
|
|
90
|
return 'IS NOT' if $self->{+NEGATE}; |
22
|
4
|
|
|
|
|
17
|
return 'IS'; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub verify { |
26
|
211
|
|
|
211
|
1
|
600
|
my $self = shift; |
27
|
211
|
|
|
|
|
587
|
my %params = @_; |
28
|
211
|
|
|
|
|
514
|
my ($got, $exists) = @params{qw/got exists/}; |
29
|
|
|
|
|
|
|
|
30
|
211
|
100
|
|
|
|
467
|
return 0 unless $exists; |
31
|
|
|
|
|
|
|
|
32
|
209
|
100
|
|
|
|
856
|
return !defined($got) unless $self->{+NEGATE}; |
33
|
5
|
|
|
|
|
22
|
return defined($got); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |