Awkwords/String.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 93.3% 28 / 30 CC 2 SCAR 2.8
CC
2
Cov
95%
render
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Awkwords/ListOf.pm ↑ Summary
1 # -*- Perl -*-
2 #
3 # a string object (mostly so ->render can recurse through the parse tree)
4  
5 package Lingua::Awkwords::String;
6  
7 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 7 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 7 our $VERSION = '0.10';
13  
14 7 has string => (is => 'ro');
15  
16 358 ▶sub render { $_[0]->string // '' }
Subroutine render: called CC=2 SCAR=7.6
Pod documented
Condition50%1/2
$_[0]->string // ""
l!l
3580
MC/DC0%0/1
$_[0]->string // ""
$_[0]->string
Truth table50%1/2
A
A= $_[0]->string
Aresult
11
00
17  
18 5 ▶sub walk {
Subroutine walk: called CC=1 SCAR=0.0
Pod documented
19 5 my ($self, $callback) = @_;
20 5 $callback->($self);
21 5 return;
22 }
23  
24 7 1;
25 __END__
« Awkwords/ListOf.pm ↑ Summary