Syndication/Generator.pm

filter: Statementstmt 80.0% 16 / 20 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 82.7% 24 / 29 CC 2 SCAR 4.5
CC
2
Cov
77%
agent
2.7
BEGIN
1.0
BEGIN
1.0
CRAP 1.6
« Syndication/Source.pm ↑ Summary Syndication.pm »
1 package XML::Atom::Syndication::Generator;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 2 ▶use base qw( XML::Atom::Syndication::Object );
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use XML::Elemental::Characters;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 XML::Atom::Syndication::Generator->mk_accessors('attribute', 'uri', 'version');
8 2 XML::Atom::Syndication::Generator->mk_accessors('attribute', 'url')
9 ; # deprecated 0.3 accessors
10  
11 1 ▶sub element_name { 'generator' }
Subroutine element_name: called CC=1 SCAR=0.0
Pod documented
12  
13 1 ▶sub agent {
Subroutine agent: called CC=2 SCAR=9.9
Pod documented
14 1 my $e = $_[0]->elem;
15 1 ▶ if (@_ > 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_ > 1) { } 0 1 1
16 0 my $chars = XML::Elemental::Characters->new;
17 0 $chars->data($_[1]);
18 0 $chars->parent($e);
19 0 $e->contents([$chars]);
20 } else {
21 1 $e->text_content;
22 }
23 }
24  
25 2 1;
26  
27 __END__
« Syndication/Source.pm ↑ Summary Syndication.pm »