line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Compare::Undef; |
2
|
169
|
|
|
169
|
|
1174
|
use strict; |
|
169
|
|
|
|
|
332
|
|
|
169
|
|
|
|
|
4884
|
|
3
|
169
|
|
|
169
|
|
838
|
use warnings; |
|
169
|
|
|
|
|
337
|
|
|
169
|
|
|
|
|
4533
|
|
4
|
|
|
|
|
|
|
|
5
|
169
|
|
|
169
|
|
825
|
use Carp qw/confess/; |
|
169
|
|
|
|
|
329
|
|
|
169
|
|
|
|
|
7286
|
|
6
|
|
|
|
|
|
|
|
7
|
169
|
|
|
169
|
|
909
|
use base 'Test2::Compare::Base'; |
|
169
|
|
|
|
|
436
|
|
|
169
|
|
|
|
|
17999
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.000155'; |
10
|
|
|
|
|
|
|
|
11
|
169
|
|
|
169
|
|
1147
|
use Test2::Util::HashBase; |
|
169
|
|
|
|
|
425
|
|
|
169
|
|
|
|
|
1120
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# Overloads '!' for us. |
14
|
169
|
|
|
169
|
|
15411
|
use Test2::Compare::Negatable; |
|
169
|
|
|
|
|
442
|
|
|
169
|
|
|
|
|
1207
|
|
15
|
|
|
|
|
|
|
|
16
|
4
|
|
|
4
|
1
|
326
|
sub name { '' } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub operator { |
19
|
6
|
|
|
6
|
1
|
222
|
my $self = shift; |
20
|
|
|
|
|
|
|
|
21
|
6
|
100
|
|
|
|
31
|
return 'IS NOT' if $self->{+NEGATE}; |
22
|
4
|
|
|
|
|
17
|
return 'IS'; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub verify { |
26
|
211
|
|
|
211
|
1
|
693
|
my $self = shift; |
27
|
211
|
|
|
|
|
659
|
my %params = @_; |
28
|
211
|
|
|
|
|
566
|
my ($got, $exists) = @params{qw/got exists/}; |
29
|
|
|
|
|
|
|
|
30
|
211
|
100
|
|
|
|
481
|
return 0 unless $exists; |
31
|
|
|
|
|
|
|
|
32
|
209
|
100
|
|
|
|
881
|
return !defined($got) unless $self->{+NEGATE}; |
33
|
5
|
|
|
|
|
24
|
return defined($got); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |