Devel/IPerl/Plugin/WebDisplay.pm

filter: Statementstmt 87.8% 29 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 10 / 12 Podpod 0.0% 0 / 5 totaltotal 78.0% 39 / 50 CC 2 SCAR 2.7
CC
2
Cov
88%
register
2.0
html
2.0
iframe
2.0
CRAP 1.3
« Devel/IPerl/Plugin/CoreDisplay.pm ↑ Summary Devel/IPerl/Display/HTML.pm »
1 package Devel::IPerl::Plugin::WebDisplay;
2 2 $Devel::IPerl::Plugin::WebDisplay::VERSION = '0.012';
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Devel::IPerl::Display::HTML;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Devel::IPerl::Display::JS;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use Devel::IPerl::Display::CSS;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Devel::IPerl::Display::IFrame;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶sub register {
Subroutine register: called CC=2 SCAR=6.9
Pod undocumented
12 2 my ($self, $iperl) = @_;
13 # TODO generalise the plugin registration
14 2 for my $name (qw(html css js iframe)) {
15 8 ▶ $iperl->helper( $name => sub { shift; $self->$name(@_) } );
Subroutine __ANON__: called CC=1 SCAR=0.0
16 }
17 }
18  
19 0 ▶sub html { shift; Devel::IPerl::Display::HTML->new(@_) }
Subroutine html: not called CC=1 SCAR=6.9
Pod undocumented
20 2 ▶sub css { shift; Devel::IPerl::Display::CSS->new(@_) }
Subroutine css: called CC=1 SCAR=0.0
Pod undocumented
21 2 ▶sub js { shift; Devel::IPerl::Display::JS->new(@_) }
Subroutine js: called CC=1 SCAR=0.0
Pod undocumented
22  
23 0 ▶sub iframe { shift; Devel::IPerl::Display::IFrame->new(@_) }
Subroutine iframe: not called CC=1 SCAR=6.9
Pod undocumented
24  
25 2 1;
26  
27 __END__
« Devel/IPerl/Plugin/CoreDisplay.pm ↑ Summary Devel/IPerl/Display/HTML.pm »