lib/Kwiki/PreformattedBlocks.pm

filter: Statementstmt 75.0% 15 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 1 totaltotal 70.3% 19 / 27 CC 1 SCAR 2.9
CC
1
Cov
75%
register
2.0
to_html
2.0
BEGIN
1.0
CRAP 1.3
↑ Summary
1 package Kwiki::PreformattedBlocks;
2 1 ▶use Kwiki::Plugin -Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶our $VERSION = '0.11';
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 const class_id => 'preformatted_blocks';
6  
7 0 ▶sub register {
Subroutine register: not called CC=1 SCAR=6.9
Pod undocumented
8 0 my $registry = shift;
9 0 $registry->add(wafl => pre => 'Kwiki::PreformattedBlocks::Wafl');
10 }
11  
12 package Kwiki::PreformattedBlocks::Wafl;
13 1 ▶use base 'Spoon::Formatter::WaflBlock';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 0 ▶sub to_html {
Subroutine to_html: not called CC=1 SCAR=6.9
16 0 join '',
17 qq{<pre class="formatter_pre">\n},
18 $self->block_text,
19 "</pre>\n";
20 }
21  
22 1 __DATA__
↑ Summary