Branch Coverage

blib/lib/HTTP/Headers/ActionPack.pm
Criterion Covered Total %
branch 14 22 63.6


line true false branch
68 0 0 exists $$self{'mappings'}{lc $header_name} ? :
78 98 0 exists $$self{'classes'}{'HTTP::Headers::ActionPack::' . $class_name} ? :
0 98 exists $$self{'classes'}{$class_name} ? :
84 0 98 unless defined $class
87 10 88 ref $args ? :
97 0 17 unless defined $class
100 4 13 ref $header_value ? :
107 3 1 if $_[0]->isa('HTTP::Headers')
109 0 0 if $_[0]->isa('HTTP::Request') or $_[0]->isa('Plack::Request') or $_[0]->isa('Web::Request')
119 8 52 if (my $old = $http_headers->header($header))
120 7 1 unless blessed $old and $old->isa('HTTP::Headers::ActionPack::Core::Base')