Document.xs

filter: Statementstmt 100% 7 / 7 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 9 / 9 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« Timestamp.xs ↑ Summary easyxs/easyxs_structref.h »
1 MODULE = TOML::XS PACKAGE = TOML::XS::Document
2  
3 PROTOTYPES: DISABLE
4  
5 SV*
6 get (SV* docsv, ...)
7 ALIAS:
8 to_struct = 1
9 parse = 2
10 CODE:
11 UNUSED(ix);
12 41 toml_result_t* res = exs_structref_ptr(docsv);
13  
14 41 toml_datum_t datum = res->toptab;
15  
16 41 ▶ if (items > 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items > 1) { 37 4 41
17 37 datum = _drill_into_table(aTHX_ datum, &ST(1), 0, items-1);
18 }
19  
20 33 RETVAL = _toml_datum_to_sv(aTHX_ datum);
21 OUTPUT:
22 RETVAL
23  
24 void
25 DESTROY (SV* docsv)
26 CODE:
27 #if DETECT_LEAKS
28 _warn_if_global_destruct_destroy(aTHX_ docsv);
29 #endif
30  
31 5 toml_result_t* res = exs_structref_ptr(docsv);
32 5 toml_free(*res);
« Timestamp.xs ↑ Summary easyxs/easyxs_structref.h »