line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
5
|
|
|
5
|
|
31
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
143
|
|
2
|
5
|
|
|
5
|
|
24
|
use warnings; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
200
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Deep::RegexpMatches 1.202; |
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
2060
|
use Test::Deep::Array; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
46
|
|
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
34
|
use base 'Test::Deep::Array'; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
195
|
|
9
|
|
|
|
|
|
|
|
10
|
5
|
|
|
5
|
|
56
|
use Scalar::Util qw( blessed ); |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
989
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub init |
13
|
|
|
|
|
|
|
{ |
14
|
5
|
|
|
5
|
0
|
12
|
my $self = shift; |
15
|
|
|
|
|
|
|
|
16
|
5
|
|
|
|
|
11
|
my $val = shift; |
17
|
|
|
|
|
|
|
|
18
|
5
|
100
|
66
|
|
|
52
|
$val = Test::Deep::array($val) unless |
19
|
|
|
|
|
|
|
blessed($val) and $val->isa("Test::Deep::Cmp"); |
20
|
|
|
|
|
|
|
|
21
|
5
|
|
|
|
|
50
|
$self->{val} = $val; |
22
|
5
|
|
|
|
|
11
|
$self->{regex} = shift; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub descend |
26
|
|
|
|
|
|
|
{ |
27
|
5
|
|
|
5
|
0
|
9
|
my $self = shift; |
28
|
|
|
|
|
|
|
|
29
|
5
|
|
|
|
|
9
|
my $got = shift; |
30
|
|
|
|
|
|
|
|
31
|
5
|
|
|
|
|
19
|
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
|
|
|
|
|
4
|
my $stack = shift; |
39
|
|
|
|
|
|
|
|
40
|
2
|
|
|
|
|
10
|
$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
|
7
|
return 1; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |