Proxy/HeaderFilter.pm

filter: Statementstmt 93.3% 14 / 15 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 3 / 3 totaltotal 92.5% 25 / 27 CC 3 SCAR 5.4
CC
3
Cov
95%
new
2.0
filter
2.0
proxy
2.0
CRAP 1.7
« Proxy/BodyFilter/tags.pm ↑ Summary Proxy/BodyFilter.pm »
1 package HTTP::Proxy::HeaderFilter;
2 68 $HTTP::Proxy::HeaderFilter::VERSION = '0.304';
3 68 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 68 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 75 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod documented
7 75 my $class = shift;
8 75 my $self = bless {}, $class;
9 75 ▶ $self->init(@_) if $self->can('init');
Branch: 1 branch
BranchTrueFalseTotal
if $self->can("init") 9 66 75
10 73 return $self;
11 }
12  
13 0 ▶sub filter {
Subroutine filter: not called CC=1 SCAR=6.9
Pod documented
14 0 croak "HTTP::Proxy::HeaderFilter cannot be used as a filter";
15 }
16  
17 438 ▶sub proxy {
Subroutine proxy: called CC=2 SCAR=6.9
Pod documented
18 438 my ( $self, $new ) = @_;
19 438 ▶ return $new ? $self->{_hphf_proxy} = $new : $self->{_hphf_proxy};
Branch: 1 branch
BranchTrueFalseTotal
$new ? : 70 368 438
20 }
21  
22 68 1;
23  
24 __END__
« Proxy/BodyFilter/tags.pm ↑ Summary Proxy/BodyFilter.pm »