Branch Coverage

t/cookbook/recipe09.xsi
Criterion Covered Total %
branch 2 108 1.8


line true false branch
54 0 0 switch(ix) {
58 0 0 if (new_val) {
59 0 0 *val = SvNV(new_val);
0 0 *val = SvNV(new_val);
66 0 0 }
67 0 0
74 0 0 Object self{ST(0)};
75 0 0 Array payload(self.payload(&payload_marker_09).obj);
77 0 0 auto& pt = THIS->get_point(idx);
78 0 0 auto pt_copy = new Point{pt.x, pt.y};
79 0 0 auto wrapped_pt = xs::out<>(pt_copy);
80 0 0 mXPUSHs(wrapped_pt.detach());
0 0 mXPUSHs(wrapped_pt.detach());
0 0 mXPUSHs(wrapped_pt.detach());
82 0 0 if (GIMME_V == G_ARRAY) {
0 0 if (GIMME_V == G_ARRAY) {
0 0 if (GIMME_V == G_ARRAY) {
83 0 0 auto ref = payload.at(idx);
85 0 0 mXPUSHs(value.detach());
0 0 mXPUSHs(value.detach());
0 0 mXPUSHs(value.detach());
90 0 0 THIS->add_point(*pt);
91 0 0 Object self{ST(0)};
92 0 0 Array payload(self.payload(&payload_marker_09).obj);
93 0 0 Sv label = maybe_label ? Sv{maybe_label} : Sv::undef;
0 0 Sv label = maybe_label ? Sv{maybe_label} : Sv::undef;
94 0 0 Sv ref = Ref::create(maybe_label);
95 0 0 payload.push(ref);
99 0 0 auto shape = new ShapeA();
100 0 0 Object obj = xs::out<>(shape, CLASS);
0 0 Object obj = xs::out<>(shape, CLASS);
0 0 Object obj = xs::out<>(shape, CLASS);
101 0 0 auto payload = Array::create();
0 0 auto payload = Array::create();
102 0 0 obj.payload_attach(payload, &payload_marker_09);
103 0 0 RETVAL = obj.ref();
0 0 RETVAL = obj.ref();
110 0 0
111 0 0 void XSShapeA::add_point(Point* pt, SV* maybe_label = nullptr) {
117 0 0 auto& pt = THIS->get_point(idx);
118 0 0 auto pt_copy = new Point{pt.x, pt.y};
119 0 0 auto wrapped_pt = xs::out<>(pt_copy);
120 0 0 mXPUSHs(wrapped_pt.detach());
0 0 mXPUSHs(wrapped_pt.detach());
0 0 mXPUSHs(wrapped_pt.detach());
121 0 0 if (GIMME_V == G_ARRAY) {
0 0 if (GIMME_V == G_ARRAY) {
0 0 if (GIMME_V == G_ARRAY) {
122 0 0 Sv value = SvRV(THIS->get_ref(idx));
123 0 0 mXPUSHs(value.detach());
0 0 mXPUSHs(value.detach());
0 0 mXPUSHs(value.detach());
128 34 0 auto stash = Stash(__PACKAGE__, GV_ADD);
129 34 0 stash.inherit("MyTest::Cookbook::ShapeA");