App/Twirc/Plugin/BangCommands.pm

filter: Statementstmt 100% 13 / 13 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 90.4% 19 / 21 CC 2 SCAR 3.4
CC
2
Cov
100%
preprocess
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« POE/Component/Server/Twirc/State.pm ↑ Summary App/Twirc/Plugin/SquashWhiteSpace.pm »
1 package App::Twirc::Plugin::BangCommands;
2 1 $App::Twirc::Plugin::BangCommands::VERSION = '0.20';
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶sub new { bless {}, shift }
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
7  
8 3 ▶sub preprocess {
Subroutine preprocess: called CC=2 SCAR=6.9
Pod undocumented
9 3 my (undef,undef,undef,undef, $textref) = @_;
10  
11 3 ▶ unless ( $$textref =~ s/^!\s*// ) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($$textref =~ s/^!\s*//) 1 2 3
12 1 $$textref = "post $$textref";
13 }
14 3 return;
15 }
16  
17 1 1;
18  
19 __END__
« POE/Component/Server/Twirc/State.pm ↑ Summary App/Twirc/Plugin/SquashWhiteSpace.pm »