Hyphenate/DOM.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 20 / 20 CC 2 SCAR 3.4
CC
2
Cov
100%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Hyphenate.pm ↑ Summary
1 # -*- cperl; cperl-indent-level: 4 -*-
2 # Copyright (C) 2009-2021, Roland van Ipenburg
3 package HTML::Hyphenate::DOM v1.1.10;
4 12 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 12 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 12 ▶use 5.016000;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 ## no critic qw(ProhibitCallsToUndeclaredSubs)
8 12 extends q{Mojo::DOM};
9  
10 ## no critic qw(ProhibitCallsToUndeclaredSubs)
11 150 ▶override 'replace' => sub {
Subroutine __ANON__: called CC=2 SCAR=6.9
12 ## use critic
13 150 my ( $self, $string ) = @_;
14 150 ▶ if ( $string ne $self->to_string ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($string ne $self->to_string) 135 15 150
15 ## no critic qw(ProhibitCallsToUndeclaredSubs)
16 135 super();
17 ## use critic
18 }
19 12 };
20  
21 12 1;
22  
23 __END__
« Hyphenate.pm ↑ Summary