line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Compare::Undef; |
2
|
169
|
|
|
169
|
|
1225
|
use strict; |
|
169
|
|
|
|
|
336
|
|
|
169
|
|
|
|
|
5096
|
|
3
|
169
|
|
|
169
|
|
827
|
use warnings; |
|
169
|
|
|
|
|
342
|
|
|
169
|
|
|
|
|
4395
|
|
4
|
|
|
|
|
|
|
|
5
|
169
|
|
|
169
|
|
854
|
use Carp qw/confess/; |
|
169
|
|
|
|
|
371
|
|
|
169
|
|
|
|
|
7710
|
|
6
|
|
|
|
|
|
|
|
7
|
169
|
|
|
169
|
|
958
|
use base 'Test2::Compare::Base'; |
|
169
|
|
|
|
|
368
|
|
|
169
|
|
|
|
|
18760
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '0.000156'; |
10
|
|
|
|
|
|
|
|
11
|
169
|
|
|
169
|
|
1237
|
use Test2::Util::HashBase; |
|
169
|
|
|
|
|
359
|
|
|
169
|
|
|
|
|
1248
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# Overloads '!' for us. |
14
|
169
|
|
|
169
|
|
15845
|
use Test2::Compare::Negatable; |
|
169
|
|
|
|
|
473
|
|
|
169
|
|
|
|
|
1281
|
|
15
|
|
|
|
|
|
|
|
16
|
4
|
|
|
4
|
1
|
288
|
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
|
|
|
|
|
21
|
return 'IS'; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub verify { |
26
|
211
|
|
|
211
|
1
|
590
|
my $self = shift; |
27
|
211
|
|
|
|
|
648
|
my %params = @_; |
28
|
211
|
|
|
|
|
539
|
my ($got, $exists) = @params{qw/got exists/}; |
29
|
|
|
|
|
|
|
|
30
|
211
|
100
|
|
|
|
509
|
return 0 unless $exists; |
31
|
|
|
|
|
|
|
|
32
|
209
|
100
|
|
|
|
890
|
return !defined($got) unless $self->{+NEGATE}; |
33
|
5
|
|
|
|
|
27
|
return defined($got); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |