line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Params::Validate::Dummy; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
64299
|
use strict; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
120
|
|
4
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
116
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
BEGIN { |
7
|
3
|
|
|
3
|
|
23
|
use Exporter (); |
|
3
|
|
|
|
|
13
|
|
|
3
|
|
|
|
|
68
|
|
8
|
3
|
|
|
3
|
|
14
|
use vars qw ($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
568
|
|
9
|
3
|
|
|
3
|
|
7
|
$VERSION = 0.03; |
10
|
3
|
|
|
|
|
63
|
@ISA = qw (Exporter); |
11
|
3
|
|
|
|
|
17
|
my %tags = |
12
|
|
|
|
|
|
|
( types => |
13
|
|
|
|
|
|
|
[ qw( SCALAR ARRAYREF HASHREF CODEREF GLOB GLOBREF |
14
|
|
|
|
|
|
|
SCALARREF HANDLE BOOLEAN UNDEF OBJECT ) ], |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
|
|
25
|
%EXPORT_TAGS = ( |
18
|
|
|
|
|
|
|
all => [ qw( validate validate_pos validation_options validate_with ), |
19
|
3
|
|
|
|
|
12
|
map { @{ $tags{$_} } } keys %tags ], |
|
3
|
|
|
|
|
5
|
|
20
|
|
|
|
|
|
|
%tags, |
21
|
|
|
|
|
|
|
); |
22
|
3
|
|
|
|
|
10
|
@EXPORT = qw (validate validate_pos); |
23
|
3
|
|
|
|
|
6
|
@EXPORT_OK = (@{ $EXPORT_TAGS{all} }, 'set_options' ); |
|
3
|
|
|
|
|
1047
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub validate (\@$) { |
27
|
2
|
|
|
2
|
1
|
5
|
@{$_[0]}; |
|
2
|
|
|
|
|
11
|
|
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub validate_pos (\@@) { |
31
|
2
|
|
|
2
|
1
|
1650
|
@{$_[0]}; |
|
2
|
|
|
|
|
13
|
|
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub validate_with { |
35
|
0
|
|
|
0
|
1
|
|
my %p = @_; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
$p{params}; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub validation_options {} |
41
|
0
|
|
|
0
|
1
|
|
sub set_options {} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub SCALAR () { 1 } |
45
|
|
|
|
|
|
|
sub ARRAYREF () { 2 } |
46
|
|
|
|
|
|
|
sub HASHREF () { 4 } |
47
|
|
|
|
|
|
|
sub CODEREF () { 8 } |
48
|
|
|
|
|
|
|
sub GLOB () { 16 } |
49
|
|
|
|
|
|
|
sub GLOBREF () { 32 } |
50
|
|
|
|
|
|
|
sub SCALARREF () { 64 } |
51
|
|
|
|
|
|
|
sub UNKNOWN () { 128 } |
52
|
|
|
|
|
|
|
sub UNDEF () { 256 } |
53
|
|
|
|
|
|
|
sub OBJECT () { 512 } |
54
|
|
|
|
|
|
|
sub HANDLE () { 16 | 32 } |
55
|
|
|
|
|
|
|
sub BOOLEAN () { 1 | 256 } |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
__END__ |