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
« xs/websocket.xs ↑ Summary include/punk/punk_bus.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 ▶ # uncoverable branch false
Branch: 3 branches
BranchTrueFalseTotal
# uncoverable branch false 1 0 1
# uncoverable branch false 1 0 1
# uncoverable branch false 1 0 1
17 1 ▶ # uncoverable condition right count:1 class:ignore_covered_err
Branch: 1 branch
BranchTrueFalseTotal
# uncoverable condition right count:1 class:ignore_covered_err 1 0 1
18 1 # uncoverable condition right count:2 class:ignore_covered_err
19 # uncoverable condition right count:3 class:ignore_covered_err
20 # uncoverable condition right count:4 class:ignore_covered_err
21 if (headers && pairs && SvROK(pairs)
22 && SvTYPE(SvRV(pairs)) == SVt_PVAV)
23 phd_add_absent(aTHX_ headers, (AV *)SvRV(pairs));
24 }
« xs/websocket.xs ↑ Summary include/punk/punk_bus.h »