Branch Coverage

xs/Timezone.xsi
Criterion Covered Total %
branch 39 158 24.6


line true false branch
21 14 0 RETVAL = THIS->name;
29 2 0 RETVAL = Hash::create();
31 2 0 RETVAL.store("name", Simple(string_view(THIS->name.data(), THIS->name.length())));
2 0 RETVAL.store("name", Simple(string_view(THIS->name.data(), THIS->name.length())));
32 2 0 RETVAL.store("is_local", Simple(THIS->is_local ? 1 : 0));
2 0 RETVAL.store("is_local", Simple(THIS->is_local ? 1 : 0));
2 0 RETVAL.store("is_local", Simple(THIS->is_local ? 1 : 0));
34 2 0 auto future = Hash::create();
2 0 auto future = Hash::create();
35 0 2 future.store("hasdst", Simple(THIS->future.hasdst ? 1 : 0));
2 0 future.store("hasdst", Simple(THIS->future.hasdst ? 1 : 0));
2 0 future.store("hasdst", Simple(THIS->future.hasdst ? 1 : 0));
37 2 0 auto outer = Hash::create();
2 0 auto outer = Hash::create();
38 2 0 outer.store("abbrev", Simple(string_view(THIS->future.outer.abbrev, strlen(THIS->future.outer.abbrev))));
2 0 outer.store("abbrev", Simple(string_view(THIS->future.outer.abbrev, strlen(THIS->future.outer.abbrev))));
39 2 0 outer.store("offset", Simple(THIS->future.outer.offset));
2 0 outer.store("offset", Simple(THIS->future.outer.offset));
40 2 0 outer.store("gmt_offset", Simple(THIS->future.outer.gmt_offset));
2 0 outer.store("gmt_offset", Simple(THIS->future.outer.gmt_offset));
41 2 0 outer.store("isdst", Simple(THIS->future.outer.isdst));
2 0 outer.store("isdst", Simple(THIS->future.outer.isdst));
42 2 0 future.store("outer", Ref::create(outer));
2 0 future.store("outer", Ref::create(outer));
44 0 2 if (THIS->future.hasdst) {
45 0 0 auto outer_end = Hash::create();
46 0 0 outer_end.store("mon", Simple(THIS->future.outer.end.mon));
0 0 outer_end.store("mon", Simple(THIS->future.outer.end.mon));
47 0 0 outer_end.store("week", Simple(THIS->future.outer.end.yday));
0 0 outer_end.store("week", Simple(THIS->future.outer.end.yday));
48 0 0 outer_end.store("day", Simple(THIS->future.outer.end.wday));
0 0 outer_end.store("day", Simple(THIS->future.outer.end.wday));
49 0 0 outer_end.store("hour", Simple(THIS->future.outer.end.hour));
0 0 outer_end.store("hour", Simple(THIS->future.outer.end.hour));
50 0 0 outer_end.store("min", Simple(THIS->future.outer.end.min));
0 0 outer_end.store("min", Simple(THIS->future.outer.end.min));
51 0 0 outer_end.store("sec", Simple(THIS->future.outer.end.sec));
0 0 outer_end.store("sec", Simple(THIS->future.outer.end.sec));
52 0 0 outer.store("end", Ref::create(outer_end));
0 0 outer.store("end", Ref::create(outer_end));
54 0 0 auto inner = Hash::create();
55 0 0 inner.store("abbrev", Simple(string_view(THIS->future.inner.abbrev, strlen(THIS->future.inner.abbrev))));
0 0 inner.store("abbrev", Simple(string_view(THIS->future.inner.abbrev, strlen(THIS->future.inner.abbrev))));
56 0 0 inner.store("offset", Simple(THIS->future.inner.offset));
0 0 inner.store("offset", Simple(THIS->future.inner.offset));
57 0 0 inner.store("gmt_offset", Simple(THIS->future.inner.gmt_offset));
0 0 inner.store("gmt_offset", Simple(THIS->future.inner.gmt_offset));
58 0 0 inner.store("isdst", Simple(THIS->future.inner.isdst));
0 0 inner.store("isdst", Simple(THIS->future.inner.isdst));
60 0 0 auto inner_end = Hash::create();
61 0 0 inner_end.store("mon", Simple(THIS->future.inner.end.mon));
0 0 inner_end.store("mon", Simple(THIS->future.inner.end.mon));
62 0 0 inner_end.store("week", Simple(THIS->future.inner.end.yday));
0 0 inner_end.store("week", Simple(THIS->future.inner.end.yday));
63 0 0 inner_end.store("day", Simple(THIS->future.inner.end.wday));
0 0 inner_end.store("day", Simple(THIS->future.inner.end.wday));
64 0 0 inner_end.store("hour", Simple(THIS->future.inner.end.hour));
0 0 inner_end.store("hour", Simple(THIS->future.inner.end.hour));
65 0 0 inner_end.store("min", Simple(THIS->future.inner.end.min));
0 0 inner_end.store("min", Simple(THIS->future.inner.end.min));
66 0 0 inner_end.store("sec", Simple(THIS->future.inner.end.sec));
0 0 inner_end.store("sec", Simple(THIS->future.inner.end.sec));
67 0 0 inner.store("end", Ref::create(inner_end));
0 0 inner.store("end", Ref::create(inner_end));
69 0 0 future.store("inner", Ref::create(inner));
0 0 future.store("inner", Ref::create(inner));
71 2 0 RETVAL.store("future", Ref::create(future));
2 0 RETVAL.store("future", Ref::create(future));
73 2 0 auto trans = Array::create();
2 0 auto trans = Array::create();
74 160 2 for (uint32_t i = 0; i < THIS->trans_cnt; ++i) trans.push(Ref::create(export_transition(THIS->trans[i], false)));
160 0 for (uint32_t i = 0; i < THIS->trans_cnt; ++i) trans.push(Ref::create(export_transition(THIS->trans[i], false)));
160 0 for (uint32_t i = 0; i < THIS->trans_cnt; ++i) trans.push(Ref::create(export_transition(THIS->trans[i], false)));
160 0 for (uint32_t i = 0; i < THIS->trans_cnt; ++i) trans.push(Ref::create(export_transition(THIS->trans[i], false)));
75 2 0 RETVAL.store("transitions", Ref::create(trans));
2 0 RETVAL.store("transitions", Ref::create(trans));
77 2 0 RETVAL.store("past", Ref::create(export_transition(THIS->trans[0], true)));
2 0 RETVAL.store("past", Ref::create(export_transition(THIS->trans[0], true)));
2 0 RETVAL.store("past", Ref::create(export_transition(THIS->trans[0], true)));