Feed/Content.pm

filter: Statementstmt 100% 22 / 22 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 4 / 4 totaltotal 100% 36 / 36 CC 2 SCAR 2.0
CC
2
Cov
100%
_var
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Feed/Format/Atom.pm ↑ Summary Feed/Enclosure.pm »
1 package XML::Feed::Content;
2 35 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 35 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 35 our $VERSION = '1.0.1';
6  
7 35 ▶use base qw( Class::ErrorHandler );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 23 ▶sub wrap {
Subroutine wrap: called CC=1 SCAR=0.0
Pod documented
10 23 my $class = shift;
11 23 my($c) = @_;
12 23 bless { %$c }, $class;
13 }
14 35 *new = \&wrap;
15  
16 45 ▶sub _var {
Subroutine _var: called CC=2 SCAR=6.9
17 45 my $content = shift;
18 45 my $var = shift;
19 45 ▶ $content->{$var} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 44 45
20 45 $content->{$var};
21 }
22  
23 15 ▶sub type { shift->_var('type', @_) }
Subroutine type: called CC=1 SCAR=0.0
Pod documented
24 20 ▶sub body { shift->_var('body', @_) }
Subroutine body: called CC=1 SCAR=0.0
Pod documented
25 10 ▶sub base { shift->_var('base', @_) }
Subroutine base: called CC=1 SCAR=0.0
Pod documented
26  
27 35 1;
28 __END__
« Feed/Format/Atom.pm ↑ Summary Feed/Enclosure.pm »