HTTP/_Stream.pm

filter: Statementstmt 42.8% 6 / 14 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 26.4% 9 / 34 CC 6 SCAR 34.6
CC
6
Cov
23%
on_data
42.0
BEGIN
1.0
BEGIN
1.0
CRAP 31.8
« HTTP/Client.pm ↑ Summary HTTP/_Transport.pm »
1 package Linux::Event::HTTP::_Stream;
2 20 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 20 ▶use parent 'Linux::Event::HTTP::_Transport';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 0 ▶sub on_data ($self, $bytes) {
Subroutine on_data: not called CC=6 SCAR=37.4
Pod documented
5 0 my $engine = $self->{http_engine};
6 0 ▶ if ($engine && $engine->want_read) {
Branch: 1 branch
BranchTrueFalseTotal
if ($engine and $engine->want_read) 0 0 0
Condition0%0/3
$engine and $engine->want_read
!ll&&!rl&&r
000
MC/DC0%0/2
$engine and $engine->want_read
$engine $engine->want_read
Truth table0%0/3
A and B
A= $engineB= $engine->want_read
ABresult
0X0
100
111
7 0 my $ok = eval { $engine->input($bytes); 1 };
8 0 ▶ $self->_http_input_failed("$@") unless $ok;
Branch: 1 branch
BranchTrueFalseTotal
unless $ok 0 0 0
9 0 ▶ $self->_http_maybe_finish if $ok && $self->{http_multiplexed};
Branch: 1 branch
BranchTrueFalseTotal
if $ok and $self->{"http_multiplexed"} 0 0 0
Condition0%0/3
$ok and $self->{"http_multiplexed"}
!ll&&!rl&&r
000
MC/DC0%0/2
$ok and $self->{"http_multiplexed"}
$ok $self->{"http_multiplexed"}
Truth table0%0/3
A and B
A= $okB= $self->{"http_multiplexed"}
ABresult
0X0
100
111
10 }
11 0 return;
12 }
13 20 1;
« HTTP/Client.pm ↑ Summary HTTP/_Transport.pm »