line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Csistck::Test::Return; |
2
|
|
|
|
|
|
|
|
3
|
17
|
|
|
17
|
|
564
|
use 5.010; |
|
17
|
|
|
|
|
53
|
|
|
17
|
|
|
|
|
702
|
|
4
|
17
|
|
|
17
|
|
92
|
use strict; |
|
17
|
|
|
|
|
27
|
|
|
17
|
|
|
|
|
548
|
|
5
|
17
|
|
|
17
|
|
89
|
use warnings; |
|
17
|
|
|
|
|
30
|
|
|
17
|
|
|
|
|
8397
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 METHODS |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head2 new([desc => undef, msg => undef, repair => 0, resp => 0]) |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
TODO document arguments |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=cut |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
37
|
|
|
37
|
1
|
300
|
my $class = shift; |
17
|
|
|
|
|
|
|
|
18
|
37
|
|
|
|
|
1439
|
bless { |
19
|
|
|
|
|
|
|
desc => "Unidentified test return", |
20
|
|
|
|
|
|
|
msg => undef, |
21
|
|
|
|
|
|
|
repair => 0, |
22
|
|
|
|
|
|
|
resp => 0, |
23
|
|
|
|
|
|
|
@_ |
24
|
|
|
|
|
|
|
}, $class; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
0
|
0
|
0
|
sub desc { shift->{desc}; } |
28
|
23
|
|
|
23
|
1
|
151
|
sub msg { shift->{msg}; } |
29
|
67
|
|
|
67
|
1
|
656
|
sub resp { shift->{resp}; } |
30
|
0
|
|
|
0
|
0
|
0
|
sub ret { resp(@_); } |
31
|
0
|
|
|
0
|
1
|
0
|
sub repair { shift->{repair}; } |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# Some sugar functions |
34
|
27
|
|
|
27
|
0
|
128
|
sub passed { (shift->resp != 0); } |
35
|
17
|
|
|
17
|
0
|
90
|
sub failed { (shift->resp == 0); } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# Return if repair operation |
38
|
0
|
|
|
0
|
0
|
|
sub is_repair { (shift->repair != 0); } |
39
|
0
|
|
|
0
|
0
|
|
sub is_check { (shift->repair == 0); } |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |