line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Csistck::Test::Return; |
2
|
|
|
|
|
|
|
|
3
|
17
|
|
|
17
|
|
357
|
use 5.010; |
|
17
|
|
|
|
|
42
|
|
4
|
17
|
|
|
17
|
|
76
|
use strict; |
|
17
|
|
|
|
|
25
|
|
|
17
|
|
|
|
|
397
|
|
5
|
17
|
|
|
17
|
|
68
|
use warnings; |
|
17
|
|
|
|
|
19
|
|
|
17
|
|
|
|
|
4255
|
|
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
|
460
|
my $class = shift; |
17
|
|
|
|
|
|
|
|
18
|
37
|
|
|
|
|
1342
|
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
|
116
|
sub msg { shift->{msg}; } |
29
|
44
|
|
|
44
|
1
|
316
|
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
|
97
|
sub passed { (shift->resp != 0); } |
35
|
17
|
|
|
17
|
0
|
264
|
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; |