TSVRPC/Util.pm

filter: Statementstmt 63.6% 7 / 11 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 47.3% 9 / 19 CC 3 SCAR 20.3
CC
3
Cov
47%
parse_content_type
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 7.6
« Cache/KyotoTycoon/Cursor.pm ↑ Summary TSVRPC/Client.pm »
1 package TSVRPC::Util;
2 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 0 ▶sub parse_content_type {
Subroutine parse_content_type: not called CC=3 SCAR=24.8
Pod undocumented
6 0 my ($content_type) = @_;
7 0 ▶ if ($content_type =~ m{text/tab-separated-values(?:; colenc=([BUQ]))?}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($content_type =~ m[text/tab-separated-values(?:; colenc=([BUQ]))?]) { } 0 0 0
8 0 ▶ return defined $1 ? $1 : '';
Branch: 1 branch
BranchTrueFalseTotal
defined $1 ? : 0 0 0
9 } else {
10 0 return undef;
11 }
12 }
13  
14 6 1;
« Cache/KyotoTycoon/Cursor.pm ↑ Summary TSVRPC/Client.pm »