blib/lib/HTTP/UserAgentClientHints/Util.pm

filter: Statementstmt 100% 12 / 12 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 94.4% 17 / 18 CC 2 SCAR 4.1
CC
2
Cov
93%
strip_quote
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« blib/lib/HTTP/UserAgentClientHints.pm ↑ Summary blib/lib/HTTP/UserAgentClientHints/BrandVersion.pm »
1 package
2 HTTP::UserAgentClientHints::Util;
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 sub strip_quote {
7 24 ▶ my ($self, $value) = @_;
Subroutine strip_quote: called CC=2 SCAR=7.0
Pod documented
8  
9 24 ▶ return '' unless defined $value;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $value 0 24 24
10  
11 24 $value =~ s/^"//;
12 24 $value =~ s/"$//;
13  
14 24 return $value;
15 }
16  
17 3 1;
18  
19 __END__
« blib/lib/HTTP/UserAgentClientHints.pm ↑ Summary blib/lib/HTTP/UserAgentClientHints/BrandVersion.pm »