line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Compare::Undef; |
2
|
100
|
|
|
100
|
|
648
|
use strict; |
|
100
|
|
|
|
|
113
|
|
|
100
|
|
|
|
|
2235
|
|
3
|
100
|
|
|
100
|
|
299
|
use warnings; |
|
100
|
|
|
|
|
113
|
|
|
100
|
|
|
|
|
1990
|
|
4
|
|
|
|
|
|
|
|
5
|
100
|
|
|
100
|
|
292
|
use Carp qw/confess/; |
|
100
|
|
|
|
|
97
|
|
|
100
|
|
|
|
|
3530
|
|
6
|
|
|
|
|
|
|
|
7
|
100
|
|
|
100
|
|
316
|
use base 'Test::Stream::Compare'; |
|
100
|
|
|
|
|
108
|
|
|
100
|
|
|
|
|
5737
|
|
8
|
100
|
|
|
100
|
|
364
|
use Test::Stream::HashBase accessors => [qw/negate/]; |
|
100
|
|
|
|
|
109
|
|
|
100
|
|
|
|
|
560
|
|
9
|
|
|
|
|
|
|
|
10
|
4
|
|
|
4
|
1
|
17
|
sub name { '' } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub operator { |
13
|
6
|
|
|
6
|
1
|
10
|
my $self = shift; |
14
|
|
|
|
|
|
|
|
15
|
6
|
100
|
|
|
|
16
|
return 'IS NOT' if $self->{+NEGATE}; |
16
|
4
|
|
|
|
|
13
|
return 'IS'; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub verify { |
20
|
547
|
|
|
547
|
1
|
426
|
my $self = shift; |
21
|
547
|
|
|
|
|
886
|
my %params = @_; |
22
|
547
|
|
|
|
|
649
|
my ($got, $exists) = @params{qw/got exists/}; |
23
|
|
|
|
|
|
|
|
24
|
547
|
100
|
|
|
|
749
|
return 0 unless $exists; |
25
|
|
|
|
|
|
|
|
26
|
545
|
100
|
|
|
|
1729
|
return !defined($got) unless $self->{+NEGATE}; |
27
|
5
|
|
|
|
|
14
|
return defined($got); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |