HTTP/_NativeBridge.pm

filter: Statementstmt 88.2% 15 / 17 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 81.4% 22 / 27 CC 3 SCAR 7.9
CC
3
Cov
81%
_input_operations_address
3.8
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« HTTP/_UpgradedStream.pm ↑ Summary HTTP.pm »
1 package Linux::Event::HTTP::_NativeBridge;
2 7 ▶use v5.36;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 ▶use Linux::Event::HTTP ();
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use Unblock::HTTP1::NativeABI 0.13 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
5 7 require XSLoader;
6 7 XSLoader::load(__PACKAGE__, $Linux::Event::HTTP::VERSION);
7  
8 7 ▶sub definition {
Subroutine definition: called CC=1 SCAR=0.0
Pod undocumented
9 7 return { provider => \&_operations_address,
10 abi_version => 1, operations_address => _operations_address() };
11 }
12  
13 26 ▶sub _input_operations_address ($engine) {
Subroutine _input_operations_address: called CC=3 SCAR=13.3
14 26 ▶ if ($engine->isa('Unblock::HTTP2::_Connection')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($engine->isa("Unblock::HTTP2::_Connection")) 0 26 26
15 0 require Unblock::HTTP2::NativeABI;
16 0 return (2, Unblock::HTTP2::NativeABI::definition()->{operations_address});
17 }
18 26 ▶ die 'unsupported HTTP native engine' unless $engine->isa('Unblock::HTTP1::_Engine');
Branch: 1 branch
BranchTrueFalseTotal
unless $engine->isa("Unblock::HTTP1::_Engine") 0 26 26
19 26 return (1, Unblock::HTTP1::NativeABI::definition()->{operations_address});
20 }
21  
22 7 1;
« HTTP/_UpgradedStream.pm ↑ Summary HTTP.pm »