line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Class::Date::Invalid; |
2
|
7
|
|
|
7
|
|
45
|
use strict; |
|
7
|
|
|
|
|
125
|
|
|
7
|
|
|
|
|
286
|
|
3
|
7
|
|
|
7
|
|
37
|
use warnings; |
|
7
|
|
|
|
|
11
|
|
|
7
|
|
|
|
|
224
|
|
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
38
|
use Class::Date::Const; |
|
7
|
|
|
|
|
11
|
|
|
7
|
|
|
|
|
2423
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '1.1.15'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use overload |
10
|
7
|
|
|
|
|
72
|
'0+' => "zero", |
11
|
|
|
|
|
|
|
'""' => "empty", |
12
|
|
|
|
|
|
|
'<=>' => "compare", |
13
|
|
|
|
|
|
|
'cmp' => "compare", |
14
|
|
|
|
|
|
|
'+' => "zero", |
15
|
|
|
|
|
|
|
'!' => "true", |
16
|
7
|
|
|
7
|
|
42
|
fallback => 1; |
|
7
|
|
|
|
|
14
|
|
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
0
|
0
|
sub empty { "" } |
19
|
16
|
|
|
16
|
0
|
56
|
sub zero { 0 } |
20
|
5
|
|
|
5
|
0
|
54
|
sub true { 1 } |
21
|
|
|
|
|
|
|
|
22
|
0
|
0
|
|
0
|
0
|
0
|
sub compare { return ($_[1] ? 1 : 0) * ($_[2] ? -1 : 1) } |
|
|
0
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
3
|
|
|
3
|
0
|
18
|
sub error { shift->[ci_error]; } |
25
|
|
|
|
|
|
|
|
26
|
3
|
|
|
3
|
0
|
6
|
sub errmsg { my ($s) = @_; |
27
|
3
|
|
|
|
|
33
|
sprintf $ERROR_MESSAGES[ $s->[ci_error] ]."\n", $s->[ci_errmsg] |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
*errstr = *errmsg; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
0
|
|
|
sub AUTOLOAD { undef } |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|