line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Salvation::TC::Type::Bool; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
1467
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
118
|
|
4
|
4
|
|
|
4
|
|
15
|
use warnings; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
94
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
21
|
use base 'Salvation::TC::Type'; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
252
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
20
|
use Salvation::TC::Exception::WrongType (); |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
311
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub Check { |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
0
|
1
|
|
my ( $class, $value ) = @_; |
14
|
|
|
|
|
|
|
|
15
|
0
|
0
|
0
|
|
|
|
( ! defined( $value ) || ( $value eq '' ) || ( $value eq '1' ) || ( $value eq '0' ) ) |
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
16
|
|
|
|
|
|
|
|| Salvation::TC::Exception::WrongType -> throw( 'type' => 'Bool', 'value' => $value ); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |