DBIx/Class/Migration/TempDirBuilder.pm

filter: Statementstmt 91.6% 11 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 82.3% 14 / 17 CC 1 SCAR 2.2
CC
1
Cov
92%
build
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« DBIx/Class/Migration/SchemaLoader.pm ↑ Summary DBIx/Class/Migration/Sandbox.pm »
1 package DBIx::Class::Migration::TempDirBuilder;
2  
3 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use File::Temp 'tempdir';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use DBIx::Class::Migration::Types -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 has schema_class => (
8 is => 'ro',
9 isa => Str,
10 required => 1);
11  
12 0 ▶sub build { tempdir( CLEANUP=>1 ) }
Subroutine build: not called CC=1 SCAR=6.9
Pod undocumented
13  
14 1 __PACKAGE__->meta->make_immutable;
15  
16 =head1 NAME
17  
18 DBIx::Class::Migration::TempDirBuilder - Build a tempory target_dir
19  
20 =head1 SYNOPSIS
21  
22 use DBIx::Class::Migration::TempDirBuilder;
23  
24 =head1 DESCRIPTION
25  
26 This creates your migration files in a temporary directory. This might
27 be useful to you for testing. Please understand that the lifespan of your
28 temporary directory will expire when your migration object goes out of
29 scope.
30  
31 This probably isn't really user servicable, although if you need to make a
32 custom C<target_dir> builder, you could look at this for example.
33  
34 =head1 SEE ALSO
35  
36 L<DBIx::Class::Migration>, L<File::Temp>.
37  
38 =head1 AUTHOR
39  
40 See L<DBIx::Class::Migration> for author information
41  
42 =head1 COPYRIGHT & LICENSE
43  
44 See L<DBIx::Class::Migration> for copyright and license information
45  
46 =cut
47  
« DBIx/Class/Migration/SchemaLoader.pm ↑ Summary DBIx/Class/Migration/Sandbox.pm »