Helper/Model/Proxy.pm

filter: Statementstmt 57.1% 8 / 14 Branchbran n/a Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 45.8% 11 / 24 CC 3 SCAR 20.3
CC
3
Cov
44%
mk_compclass
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 7.6
« Model/Proxy.pm ↑ Summary
1 package Catalyst::Helper::Model::Proxy;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '0.04';
7  
8 =head1 NAME
9  
10 Catalyst::Helper::Model::Proxy - Helper for Proxy Models
11  
12 =head1 SYNOPSIS
13  
14 script/create.pl model Proxy Proxy dsn user password
15  
16 =head1 DESCRIPTION
17  
18 Helper for Proxy Model.
19  
20 =head2 METHODS
21  
22 =over 4
23  
24 =item mk_compclass
25  
26 Reads the database and makes a main model class
27  
28 =item mk_comptest
29  
30 Makes tests for the Proxy Model.
31  
32 =back
33  
34 =cut
35  
36 0 ▶sub mk_compclass {
Subroutine mk_compclass: not called CC=3 SCAR=24.8
Pod documented
37 0 my ( $self, $helper, $target_class, $subroutines ) = @_;
38 0 ▶ $helper->{target_class} = $target_class || '';
Condition0%0/2
$target_class || ''
l!l
00
MC/DC0%0/1
$target_class || ''
$target_class
Truth table0%0/2
A
A= $target_class
Aresult
11
00
39 0 ▶ $helper->{subroutines} = $subroutines || '';
Condition0%0/2
$subroutines || ''
l!l
00
MC/DC0%0/1
$subroutines || ''
$subroutines
Truth table0%0/2
A
A= $subroutines
Aresult
11
00
40 0 my $file = $helper->{file};
41 0 $helper->render_file( 'dbiclass', $file );
42 0 return 1;
43 }
44  
45 =head1 SEE ALSO
46  
47 L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>,
48 L<Catalyst::Response>, L<Catalyst::Helper>
49  
50 =head1 AUTHOR
51  
52 Alex Pavlovic, C<alex.pavlovic@taskforce-1.com>
53  
54 =head1 LICENSE
55  
56 This library is free software . You can redistribute it and/or modify
57 it under the same terms as perl itself.
58  
59 =cut
60  
61 1 1;
62 __DATA__
« Model/Proxy.pm ↑ Summary