lib/Reaction/Types/File.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 37.5% 3 / 8 Podpod n/a totaltotal 61.5% 16 / 26 CC 1 SCAR 2.6
CC
1
Cov
72%
__ANON__
2.0
__ANON__
2.0
__ANON__
1.1
CRAP 1.3
« lib/Reaction/Test/WithDB.pm ↑ Summary lib/Reaction/UI/ViewPort/Field/DateTime.pm »
1 package Reaction::Types::File;
2  
3 6 ▶use MooseX::Types -declare => [qw/File Upload/];
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 6 ▶use MooseX::Types::Moose 'Object';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use Path::Class::File;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶subtype File, as Object, where { $_->isa('Path::Class::File') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
9 0 ▶ message { "Must be a file" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
10  
11 0 ▶subtype Upload, as Object, where { $_->isa('Catalyst::Request::Upload') },
Subroutine __ANON__: not called CC=1 SCAR=6.9
12 0 ▶ message { "Must be a file" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
13  
14 0 ▶coerce File, from Upload, via { Path::Class::File->new( $_->tempname ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
15  
16 6 1;
17  
18 =head1 NAME
19  
20 Reaction::Types::File
21  
22 =head1 DESCRIPTION
23  
24 =over
25  
26 =item * File
27  
28 =back
29  
30 =head1 SEE ALSO
31  
32 =over
33  
34 =item * L<Reaction::Types::Core>
35  
36 =back
37  
38 =head1 AUTHORS
39  
40 See L<Reaction::Class> for authors.
41  
42 =head1 LICENSE
43  
44 See L<Reaction::Class> for the license.
45  
46 =cut
« lib/Reaction/Test/WithDB.pm ↑ Summary lib/Reaction/UI/ViewPort/Field/DateTime.pm »