fetch_default.c

filter: Statementstmt 100% 6 / 6 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 90.0% 9 / 10 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« pack_length.c ↑ Summary make_constant.c »
1  
2 #include "common.h"
3  
4 SV *
5 99 hv_fetch_def(HV *hv, const char *key, I32 klen, SV *def) {
6 99 SV **psv = hv_fetch(hv, key, klen, 0);
7 99 ▶ return (psv ? *psv : def);
Branch: 1 branch
BranchTrueFalseTotal
return (psv ? *psv : def); 89 10 99
8 }
9  
10 SV *
11 49 av_fetch_def(AV *av, I32 key, SV *def) {
12 49 SV **psv = av_fetch(av, key, 0);
13 49 ▶ return (psv ? *psv : def);
Branch: 1 branch
BranchTrueFalseTotal
return (psv ? *psv : def); 49 0 49
14 }
« pack_length.c ↑ Summary make_constant.c »