line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Deep::Teng::Row; |
2
|
1
|
|
|
1
|
|
43297
|
use 5.008_001; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
43
|
|
3
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
58
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
1224
|
use Test::Deep (); |
|
1
|
|
|
|
|
20774
|
|
|
1
|
|
|
|
|
31
|
|
9
|
1
|
|
|
1
|
|
1655
|
use Test::Deep::Cmp; |
|
1
|
|
|
|
|
1152
|
|
|
1
|
|
|
|
|
6
|
|
10
|
1
|
|
|
1
|
|
1295
|
use Exporter::Lite; |
|
1
|
|
|
|
|
1059
|
|
|
1
|
|
|
|
|
7
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our @EXPORT = qw(teng_row); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub teng_row { |
15
|
0
|
|
|
0
|
1
|
|
my ($expected) = @_; |
16
|
0
|
|
|
|
|
|
__PACKAGE__->new($expected); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub init { |
20
|
0
|
|
|
0
|
0
|
|
my ($self, $val) = @_; |
21
|
0
|
|
|
|
|
|
$self->{val} = $val; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub descend { |
25
|
0
|
|
|
0
|
0
|
|
my ($self, $got) = @_; |
26
|
|
|
|
|
|
|
|
27
|
0
|
0
|
|
|
|
|
unless ( $got->isa('Teng::Row') ) { |
28
|
0
|
|
|
|
|
|
$self->{error} = 'got row is not teng row object'; |
29
|
0
|
|
|
|
|
|
return 0; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
0
|
0
|
|
|
|
|
unless ( $self->{val}->isa('Teng::Row') ) { |
33
|
0
|
|
|
|
|
|
$self->{error} = 'expected row is not teng row object'; |
34
|
0
|
|
|
|
|
|
return 0; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
Test::Deep::wrap($self->{val}->get_columns)->descend($got->get_columns); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub diagnostics { |
41
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
42
|
0
|
|
|
|
|
|
return $self->{error}; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
__END__ |