line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Salvation::TC::Type::Str; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
1226
|
use strict; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
105
|
|
4
|
4
|
|
|
4
|
|
12
|
use warnings; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
78
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
11
|
use base 'Salvation::TC::Type::Text'; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
1193
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
17
|
use Salvation::TC::Exception::WrongType (); |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
237
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub Check { |
12
|
|
|
|
|
|
|
|
13
|
63
|
|
|
63
|
1
|
62
|
my ( $class, $value ) = @_; |
14
|
|
|
|
|
|
|
|
15
|
63
|
100
|
66
|
|
|
381
|
( defined $value && ! ref $value ) || Salvation::TC::Exception::WrongType -> throw( 'type' => 'Str', 'value' => $value ); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |