line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
41
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
169
|
|
2
|
6
|
|
|
6
|
|
29
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
243
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::RegexpMatches 1.203; |
5
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
2588
|
use Test::Deep::Array; |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
53
|
|
7
|
|
|
|
|
|
|
|
8
|
6
|
|
|
6
|
|
39
|
use base 'Test::Deep::Array'; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
253
|
|
9
|
|
|
|
|
|
|
|
10
|
6
|
|
|
6
|
|
33
|
use Scalar::Util qw( blessed ); |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
1256
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub init |
13
|
|
|
|
|
|
|
{ |
14
|
5
|
|
|
5
|
0
|
9
|
my $self = shift; |
15
|
|
|
|
|
|
|
|
16
|
5
|
|
|
|
|
7
|
my $val = shift; |
17
|
|
|
|
|
|
|
|
18
|
5
|
100
|
66
|
|
|
35
|
$val = Test::Deep::array($val) unless |
19
|
|
|
|
|
|
|
blessed($val) and $val->isa("Test::Deep::Cmp"); |
20
|
|
|
|
|
|
|
|
21
|
5
|
|
|
|
|
48
|
$self->{val} = $val; |
22
|
5
|
|
|
|
|
12
|
$self->{regex} = shift; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub descend |
26
|
|
|
|
|
|
|
{ |
27
|
5
|
|
|
5
|
0
|
9
|
my $self = shift; |
28
|
|
|
|
|
|
|
|
29
|
5
|
|
|
|
|
7
|
my $got = shift; |
30
|
|
|
|
|
|
|
|
31
|
5
|
|
|
|
|
15
|
return Test::Deep::descend($got, $self->{val}); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub render_stack |
35
|
|
|
|
|
|
|
{ |
36
|
2
|
|
|
2
|
0
|
4
|
my $self = shift; |
37
|
|
|
|
|
|
|
|
38
|
2
|
|
|
|
|
3
|
my $stack = shift; |
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
|
|
8
|
$stack = "[$stack =~ $self->{regex}]"; |
41
|
|
|
|
|
|
|
|
42
|
2
|
|
|
|
|
5
|
return $stack; |
43
|
|
|
|
|
|
|
# return $self->SUPER::render_stack($stack); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub reset_arrow |
47
|
|
|
|
|
|
|
{ |
48
|
2
|
|
|
2
|
0
|
6
|
return 1; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |