xs/headers.xs

filter: Statementstmt 100% 4 / 4 Branchbran 50.0% 4 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 66.6% 8 / 12 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Punk.xs ↑ Summary include/punk/punk_compile.h »
1 MODULE = Punk PACKAGE = Punk::Headers
2  
3 PROTOTYPES: DISABLE
4  
5 # The one piece of the headers path that cannot be C: a nonblocking handler
6 # hands back a Future, and chaining onto it needs ->then. Punk::Headers::_chain
7 # does the chaining and calls this to do the work (punk_headers.h). The
8 # triplet and streaming shapes happen in pc_app_cb without a Perl frame.
9 void
10 _decorate(resp, pairs)
11 SV *resp
12 SV *pairs
13 CODE:
14 {
15 1 AV *headers = pco_headers_of(aTHX_ resp);
16 1 ▶ if (headers && pairs && SvROK(pairs)
Branch: 3 branches
BranchTrueFalseTotal
if (headers && pairs && SvROK(pairs) 1 0 1
if (headers && pairs && SvROK(pairs) 1 0 1
if (headers && pairs && SvROK(pairs) 1 0 1
17 1 ▶ && SvTYPE(SvRV(pairs)) == SVt_PVAV)
Branch: 1 branch
BranchTrueFalseTotal
&& SvTYPE(SvRV(pairs)) == SVt_PVAV) 1 0 1
18 1 phd_add_absent(aTHX_ headers, (AV *)SvRV(pairs));
19 }
« Punk.xs ↑ Summary include/punk/punk_compile.h »