BackPAN/Index/Release.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 33.3% 1 / 3 totaltotal 95.6% 44 / 46 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« BackPAN/Index/File.pm ↑ Summary BackPAN/Index/Dist.pm »
1 10 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package BackPAN::Index::Release;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 10 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 10 __PACKAGE__->table("releases");
12 10 __PACKAGE__->add_columns(
13 "path",
14 { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
15 "dist",
16 { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
17 "date",
18 { data_type => "integer", is_nullable => 0 },
19 "size",
20 { data_type => "text", is_nullable => 0 },
21 "version",
22 { data_type => "text", is_nullable => 0 },
23 "maturity",
24 { data_type => "text", is_nullable => 0 },
25 "distvname",
26 { data_type => "text", is_nullable => 0 },
27 "cpanid",
28 { data_type => "text", is_nullable => 0 },
29 );
30 10 __PACKAGE__->set_primary_key("path");
31 10 __PACKAGE__->belongs_to(
32 "dist",
33 "BackPAN::Index::Dist",
34 { name => "dist" },
35 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
36 );
37 10 __PACKAGE__->has_many(
38 "dists_first_releases",
39 "BackPAN::Index::Dist",
40 { "foreign.first_release" => "self.path" },
41 { cascade_copy => 0, cascade_delete => 0 },
42 );
43 10 __PACKAGE__->has_many(
44 "dists_latest_releases",
45 "BackPAN::Index::Dist",
46 { "foreign.latest_release" => "self.path" },
47 { cascade_copy => 0, cascade_delete => 0 },
48 );
49 10 __PACKAGE__->belongs_to(
50 "path",
51 "BackPAN::Index::File",
52 { path => "path" },
53 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
54 );
55  
56  
57 # Created by DBIx::Class::Schema::Loader v0.07033 @ 2012-12-27 01:39:08
58 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MhFMcHAmoBJtN17iZgHLEw
59  
60 10 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 10 with 'BackPAN::Index::Role::AsHash';
62  
63 use overload
64 8 ▶ q[""] => sub { $_[0]->distvname },
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
65 10 fallback => 1;
66  
67 1 ▶sub data_methods {
Subroutine data_methods: called CC=1 SCAR=0.0
Pod undocumented
68 1 return qw(dist version cpanid date path maturity);
69 }
70  
71 2 ▶sub filename {
Subroutine filename: called CC=1 SCAR=0.0
Pod documented
72 2 my $self = shift;
73 2 return $self->path->filename;
74 }
75  
76 # Compatibility with PBP
77 2 ▶sub prefix {
Subroutine prefix: called CC=1 SCAR=0.0
Pod undocumented
78 2 my $self = shift;
79 2 return $self->path;
80 }
81  
82 10 1;
83  
84 __END__
« BackPAN/Index/File.pm ↑ Summary BackPAN/Index/Dist.pm »