blib/lib/Catalyst/Helper/View/CMS.pm

filter: Statementstmt 63.6% 7 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 100% 2 / 2 totaltotal 64.7% 11 / 17 CC 1 SCAR 4.1
CC
1
Cov
64%
mk_compclass
2.0
mk_comptest
2.0
BEGIN
1.0
CRAP 1.5
« blib/lib/Catalyst/Helper/Model/CMS.pm ↑ Summary lib/Catalyst/Action/CMS.pm »
1 package Catalyst::Helper::View::CMS;
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 =head1 NAME
7  
8 Catalyst::Helper::View::CMS - Helper for CatalystX::CMS::View
9  
10 =head1 SYNOPSIS
11  
12 script/myapp_create.pl view CMS CMS
13  
14 =head1 DESCRIPTION
15  
16 Helper for CatalystX::CMS::View.
17  
18 =head2 METHODS
19  
20 =over 4
21  
22 =item mk_compclass
23  
24 Makes a CatalystX::CMS::View class for you.
25  
26 =item mk_comptest
27  
28 Makes tests.
29  
30 =back
31  
32 =cut
33  
34 0 ▶sub mk_compclass {
Subroutine mk_compclass: not called CC=1 SCAR=6.9
Pod documented
35 0 my ( $self, $helper ) = @_;
36 0 $helper->render_file( 'cmsclass', $helper->{file} );
37 }
38  
39 0 ▶sub mk_comptest {
Subroutine mk_comptest: not called CC=1 SCAR=6.9
Pod documented
40 0 my ( $self, $helper ) = @_;
41 0 $helper->render_file( 'cmstest', $helper->{test} );
42 }
43  
44 =head1 SEE ALSO
45  
46 L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>,
47 L<Catalyst::Response>, L<Catalyst::Helper>, L<CatalystX::CMS::View>
48  
49 =head1 AUTHOR
50  
51 Peter Karman <karman@cpan.org>
52  
53 =head1 LICENSE
54  
55 This library is free software . You can redistribute it and/or modify it under
56 the same terms as perl itself.
57  
58 =cut
59  
60 1 1;
61 __DATA__
« blib/lib/Catalyst/Helper/Model/CMS.pm ↑ Summary lib/Catalyst/Action/CMS.pm »