blib/lib/OpusVL/AppKit/View/SimpleXML.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 59.2% 16 / 27 CC 3 SCAR 17.4
CC
3
Cov
58%
process
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« lib/OpusVL/AppKit/Action/AppKitForm.pm ↑ Summary blib/lib/OpusVL/AppKit/FormFu/Constraint/AppKitUsername.pm »
1 package OpusVL::AppKit::View::SimpleXML;
2  
3  
4  
5 9 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 BEGIN
9 9 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
10 9 extends 'Catalyst::View';
11 }
12 9 ▶use XML::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 sub process
15 0 ▶{
Subroutine process: not called CC=3 SCAR=24.8
Pod documented
16 0 my ( $self, $c ) = @_;
17 0 ▶ $c->response->headers->content_type($c->stash->{content_type} || 'text/xml');
Condition0%0/2
$c->stash->{'content_type'} || 'text/xml'
l!l
00
MC/DC0%0/1
$c->stash->{'content_type'} || 'text/xml'
$c->stash->{'content_type'}
Truth table0%0/2
A
A= $c->stash->{'content_type'}
Aresult
11
00
18 # FIXME: really ought to make the XML options optional too.
19 $c->response->output( XMLout $c->stash->{xml},
20 NoAttr => 1,
21 0 ▶ RootName => $c->stash->{root_element} || 'root_element',
Condition0%0/2
$c->stash->{'root_element'} || 'root_element'
l!l
00
MC/DC0%0/1
$c->stash->{'root_element'} || 'root_element'
$c->stash->{'root_element'}
Truth table0%0/2
A
A= $c->stash->{'root_element'}
Aresult
11
00
22 XMLDecl => 1 );
23 0 return 1;
24 }
25  
26  
27 9 1;
28  
29 __END__
« lib/OpusVL/AppKit/Action/AppKitForm.pm ↑ Summary blib/lib/OpusVL/AppKit/FormFu/Constraint/AppKitUsername.pm »