DBIx/Class/Migration/Types.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod n/a totaltotal 80.7% 21 / 26 CC 1 SCAR 0.7
CC
1
Cov
85%
__ANON__
1.3
__ANON__
1.1
BEGIN
1.0
CRAP 1.1
« DBIx/Class/Migration/SchemaLoader.pm ↑ Summary DBIx/Class/Migration/TargetDirSandboxBuilder.pm »
1 package DBIx::Class::Migration::Types;
2  
3 7 ▶use base 'MooseX::Types::Combine';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # tell perl this inline package has already been loaded
6 7 $INC{'DBIx/Class/Migration/_Types.pm'} = __FILE__;
7  
8 7 __PACKAGE__->provide_types_from(
9 'MooseX::Types::LoadableClass',
10 'DBIx::Class::Migration::_Types');
11  
12 package #hide from PAUSE
13 DBIx::Class::Migration::_Types;
14  
15 7 ▶use MooseX::Types::LoadableClass 'LoadableClass';
Subroutine BEGIN: called CC=1 SCAR=0.0
16 7 ▶use MooseX::Types::Moose 'Str', 'ClassName';
Subroutine BEGIN: called CC=1 SCAR=0.0
17 7 ▶use MooseX::Types -declare => [ 'LoadableDBICSchemaClass' ];
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 subtype LoadableDBICSchemaClass,
20 as LoadableClass,
21 0 ▶ message { "$_ is not the name of a loadable schema class. You probably have a typo, or some problem with \@INC"};
Subroutine __ANON__: not called CC=1 SCAR=1.2
22  
23 coerce LoadableDBICSchemaClass,
24 from Str,
25 0 ▶ via { to_LoadableClass($_); $_ };
Subroutine __ANON__: not called CC=1 SCAR=2.6
26  
27 7 1;
28  
29 =head1 NAME
30  
31 DBIx::Class::Migration::Types - Custom Moose Types
32  
33 =head1 SYNOPSIS
34  
35 use DBIx::Class::Migration::Types 'Schema';
36 use Moose;
37  
38 has 'schema' => isa=>Schema;
39  
40 =head1 DESCRIPTION
41  
42 Custom Types for Moose. Probably nothing here you need to worry about.
43  
44 =head1 SEE ALSO
45  
46 L<DBIx::Class::Migration>, L<MooseX::Types>, L<MooseX::Types::LoadableClass>
47  
48 =head1 AUTHOR
49  
50 See L<DBIx::Class::Migration> for author information
51  
52 =head1 COPYRIGHT & LICENSE
53  
54 See L<DBIx::Class::Migration> for copyright and license information
55  
56 =cut
57  
« DBIx/Class/Migration/SchemaLoader.pm ↑ Summary DBIx/Class/Migration/TargetDirSandboxBuilder.pm »