Branch Coverage

Timezone.xsi
Criterion Covered Total %
branch 83 158 52.5


line true false branch
4 2467 0 string name (TimezoneSP THIS) { RETVAL = THIS->name; }
9 1228 0 RETVAL = Hash::create();
11 1228 0 RETVAL.store("name", Simple(string_view(THIS->name.data(), THIS->name.length())));
1228 0 RETVAL.store("name", Simple(string_view(THIS->name.data(), THIS->name.length())));
12 2 1226 RETVAL.store("is_local", Simple(THIS->is_local ? 1 : 0));
1228 0 RETVAL.store("is_local", Simple(THIS->is_local ? 1 : 0));
1228 0 RETVAL.store("is_local", Simple(THIS->is_local ? 1 : 0));
14 1228 0 auto future = Hash::create();
1228 0 auto future = Hash::create();
15 445 783 future.store("hasdst", Simple(THIS->future.hasdst ? 1 : 0));
1228 0 future.store("hasdst", Simple(THIS->future.hasdst ? 1 : 0));
1228 0 future.store("hasdst", Simple(THIS->future.hasdst ? 1 : 0));
17 1228 0 auto outer = Hash::create();
1228 0 auto outer = Hash::create();
18 1228 0 outer.store("abbrev", Simple(string_view(THIS->future.outer.abbrev, strlen(THIS->future.outer.abbrev))));
1228 0 outer.store("abbrev", Simple(string_view(THIS->future.outer.abbrev, strlen(THIS->future.outer.abbrev))));
19 1228 0 outer.store("offset", Simple(THIS->future.outer.offset));
1228 0 outer.store("offset", Simple(THIS->future.outer.offset));
20 1228 0 outer.store("gmt_offset", Simple(THIS->future.outer.gmt_offset));
1228 0 outer.store("gmt_offset", Simple(THIS->future.outer.gmt_offset));
21 1228 0 outer.store("isdst", Simple(THIS->future.outer.isdst));
1228 0 outer.store("isdst", Simple(THIS->future.outer.isdst));
22 1228 0 future.store("outer", Ref::create(outer));
1228 0 future.store("outer", Ref::create(outer));
24 445 783 if (THIS->future.hasdst) {
25 445 0 auto outer_end = Hash::create();
26 445 0 outer_end.store("mon", Simple(THIS->future.outer.end.mon));
445 0 outer_end.store("mon", Simple(THIS->future.outer.end.mon));
27 445 0 outer_end.store("week", Simple(THIS->future.outer.end.yday));
445 0 outer_end.store("week", Simple(THIS->future.outer.end.yday));
28 445 0 outer_end.store("day", Simple(THIS->future.outer.end.wday));
445 0 outer_end.store("day", Simple(THIS->future.outer.end.wday));
29 445 0 outer_end.store("hour", Simple(THIS->future.outer.end.hour));
445 0 outer_end.store("hour", Simple(THIS->future.outer.end.hour));
30 445 0 outer_end.store("min", Simple(THIS->future.outer.end.min));
445 0 outer_end.store("min", Simple(THIS->future.outer.end.min));
31 445 0 outer_end.store("sec", Simple(THIS->future.outer.end.sec));
445 0 outer_end.store("sec", Simple(THIS->future.outer.end.sec));
32 445 0 outer.store("end", Ref::create(outer_end));
445 0 outer.store("end", Ref::create(outer_end));
34 445 0 auto inner = Hash::create();
35 445 0 inner.store("abbrev", Simple(string_view(THIS->future.inner.abbrev, strlen(THIS->future.inner.abbrev))));
445 0 inner.store("abbrev", Simple(string_view(THIS->future.inner.abbrev, strlen(THIS->future.inner.abbrev))));
36 445 0 inner.store("offset", Simple(THIS->future.inner.offset));
445 0 inner.store("offset", Simple(THIS->future.inner.offset));
37 445 0 inner.store("gmt_offset", Simple(THIS->future.inner.gmt_offset));
445 0 inner.store("gmt_offset", Simple(THIS->future.inner.gmt_offset));
38 445 0 inner.store("isdst", Simple(THIS->future.inner.isdst));
445 0 inner.store("isdst", Simple(THIS->future.inner.isdst));
40 445 0 auto inner_end = Hash::create();
41 445 0 inner_end.store("mon", Simple(THIS->future.inner.end.mon));
445 0 inner_end.store("mon", Simple(THIS->future.inner.end.mon));
42 445 0 inner_end.store("week", Simple(THIS->future.inner.end.yday));
445 0 inner_end.store("week", Simple(THIS->future.inner.end.yday));
43 445 0 inner_end.store("day", Simple(THIS->future.inner.end.wday));
445 0 inner_end.store("day", Simple(THIS->future.inner.end.wday));
44 445 0 inner_end.store("hour", Simple(THIS->future.inner.end.hour));
445 0 inner_end.store("hour", Simple(THIS->future.inner.end.hour));
45 445 0 inner_end.store("min", Simple(THIS->future.inner.end.min));
445 0 inner_end.store("min", Simple(THIS->future.inner.end.min));
46 445 0 inner_end.store("sec", Simple(THIS->future.inner.end.sec));
445 0 inner_end.store("sec", Simple(THIS->future.inner.end.sec));
47 445 0 inner.store("end", Ref::create(inner_end));
445 0 inner.store("end", Ref::create(inner_end));
49 445 0 future.store("inner", Ref::create(inner));
445 0 future.store("inner", Ref::create(inner));
51 1228 0 RETVAL.store("future", Ref::create(future));
1228 0 RETVAL.store("future", Ref::create(future));
53 1228 0 auto trans = Array::create();
1228 0 auto trans = Array::create();
54 101783 1228 for (uint32_t i = 0; i < THIS->trans_cnt; ++i) trans.push(Ref::create(export_transition(THIS->trans[i], false)));
101783 0 for (uint32_t i = 0; i < THIS->trans_cnt; ++i) trans.push(Ref::create(export_transition(THIS->trans[i], false)));
101783 0 for (uint32_t i = 0; i < THIS->trans_cnt; ++i) trans.push(Ref::create(export_transition(THIS->trans[i], false)));
101783 0 for (uint32_t i = 0; i < THIS->trans_cnt; ++i) trans.push(Ref::create(export_transition(THIS->trans[i], false)));
55 1228 0 RETVAL.store("transitions", Ref::create(trans));
1228 0 RETVAL.store("transitions", Ref::create(trans));
57 1228 0 RETVAL.store("past", Ref::create(export_transition(THIS->trans[0], true)));
1228 0 RETVAL.store("past", Ref::create(export_transition(THIS->trans[0], true)));
1228 0 RETVAL.store("past", Ref::create(export_transition(THIS->trans[0], true)));