line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
2
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
37
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::RegexpRef 1.202; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
483
|
use Test::Deep::Ref; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
7
|
1
|
|
|
1
|
|
11
|
use Test::Deep::RegexpVersion; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
156
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init |
10
|
|
|
|
|
|
|
{ |
11
|
2
|
|
|
2
|
0
|
3
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
|
|
3
|
my $val = shift; |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
|
|
41
|
$self->{val} = $val; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub descend |
19
|
|
|
|
|
|
|
{ |
20
|
2
|
|
|
2
|
0
|
3
|
my $self = shift; |
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
|
|
2
|
my $got = shift; |
23
|
|
|
|
|
|
|
|
24
|
2
|
|
|
|
|
4
|
my $exp = $self->{val}; |
25
|
|
|
|
|
|
|
|
26
|
2
|
50
|
|
|
|
3
|
if ($Test::Deep::RegexpVersion::OldStyle) { |
27
|
0
|
0
|
|
|
|
0
|
return 0 unless $self->test_class($got, "Regexp"); |
28
|
0
|
0
|
|
|
|
0
|
return 0 unless $self->test_reftype($got, "SCALAR"); |
29
|
|
|
|
|
|
|
} else { |
30
|
2
|
50
|
|
|
|
9
|
return 0 unless $self->test_reftype($got, "REGEXP"); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
2
|
|
|
|
|
5
|
return Test::Deep::descend($got, Test::Deep::regexprefonly($exp)); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub renderGot |
37
|
|
|
|
|
|
|
{ |
38
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
|
|
|
return shift().""; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |