Devel/IPerl/Plugin/DocDisplay.pm

filter: Statementstmt 73.9% 17 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 0.0% 0 / 3 totaltotal 64.7% 22 / 34 CC 2 SCAR 4.3
CC
2
Cov
74%
register
2.3
markdown
2.0
tex
2.0
CRAP 1.5
« Devel/IPerl/Display/JS.pm ↑ Summary Devel/IPerl/Display/JPEG.pm »
1 package Devel::IPerl::Plugin::DocDisplay;
2 1 $Devel::IPerl::Plugin::DocDisplay::VERSION = '0.012';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Devel::IPerl::Display::Markdown;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Devel::IPerl::Display::TeX;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶sub register {
Subroutine register: called CC=2 SCAR=8.1
Pod undocumented
10 1 my ($self, $iperl) = @_;
11 # TODO generalise the plugin registration
12 1 for my $name (qw(markdown tex)) {
13 0 ▶ $iperl->helper( $name => sub { shift; $self->$name(@_) } );
Subroutine __ANON__: not called CC=1 SCAR=2.6
14 }
15 }
16  
17 0 ▶sub markdown { shift; Devel::IPerl::Display::Markdown->new(@_) };
Subroutine markdown: not called CC=1 SCAR=6.9
Pod undocumented
18 0 ▶sub tex { shift; Devel::IPerl::Display::TeX->new(@_) };
Subroutine tex: not called CC=1 SCAR=6.9
Pod undocumented
19  
20 1 1;
21  
22 __END__
« Devel/IPerl/Display/JS.pm ↑ Summary Devel/IPerl/Display/JPEG.pm »