line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Compare::Undef; |
2
|
100
|
|
|
100
|
|
1030
|
use strict; |
|
100
|
|
|
|
|
192
|
|
|
100
|
|
|
|
|
2574
|
|
3
|
100
|
|
|
100
|
|
544
|
use warnings; |
|
100
|
|
|
|
|
198
|
|
|
100
|
|
|
|
|
2756
|
|
4
|
|
|
|
|
|
|
|
5
|
100
|
|
|
100
|
|
482
|
use Carp qw/confess/; |
|
100
|
|
|
|
|
191
|
|
|
100
|
|
|
|
|
4405
|
|
6
|
|
|
|
|
|
|
|
7
|
100
|
|
|
100
|
|
531
|
use Test::Stream::Compare; |
|
100
|
|
|
|
|
176
|
|
|
100
|
|
|
|
|
651
|
|
8
|
|
|
|
|
|
|
use Test::Stream::HashBase( |
9
|
100
|
|
|
|
|
770
|
base => 'Test::Stream::Compare', |
10
|
|
|
|
|
|
|
accessors => [qw/negate/], |
11
|
100
|
|
|
100
|
|
569
|
); |
|
100
|
|
|
|
|
202
|
|
12
|
|
|
|
|
|
|
|
13
|
4
|
|
|
4
|
1
|
23
|
sub name { '' } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub operator { |
16
|
6
|
|
|
6
|
1
|
17
|
my $self = shift; |
17
|
|
|
|
|
|
|
|
18
|
6
|
100
|
|
|
|
36
|
return 'IS NOT' if $self->{+NEGATE}; |
19
|
4
|
|
|
|
|
20
|
return 'IS'; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub verify { |
23
|
546
|
|
|
546
|
1
|
800
|
my $self = shift; |
24
|
546
|
|
|
|
|
1633
|
my %params = @_; |
25
|
546
|
|
|
|
|
1034
|
my ($got, $exists) = @params{qw/got exists/}; |
26
|
|
|
|
|
|
|
|
27
|
546
|
100
|
|
|
|
1227
|
return 0 unless $exists; |
28
|
|
|
|
|
|
|
|
29
|
544
|
100
|
|
|
|
2829
|
return !defined($got) unless $self->{+NEGATE}; |
30
|
5
|
|
|
|
|
25
|
return defined($got); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |