Lujoyglamour/Result/Url.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Lujoyglamour.pm ↑ Summary Lujoyglamour/WebApp.pm »
1 package Net::Lujoyglamour::Result::Url;
2  
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 our $VERSION = sprintf "%d.%03d", q$Revision: 1.5 $ =~ /(\d+)\.(\d+)/g;
8  
9 1 ▶use base qw/DBIx::Class::Core/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 __PACKAGE__->table('short_url');
12 __PACKAGE__->add_columns(longu =>
13 { accessor => 'long_url',
14 data_type => 'VARCHAR',
15 size => 255,
16 is_nullable => 0,
17 is_auto_increment => 0
18 },
19 shortu =>
20 { accessor => 'short_url',
21 data_type => 'VARCHAR',
22 size => $Net::Lujoyglamour::short_url_size,
23 is_nullable => 0,
24 is_auto_increment => 0
25 }
26 );
27  
28 __PACKAGE__->set_primary_key( qw/ shortu longu/ );
29  
30  
31 "lujo and glamour all over again"; # Magic true value required at end of module
32  
33 __END__
« Lujoyglamour.pm ↑ Summary Lujoyglamour/WebApp.pm »