Branch Coverage

xsi/noding/Noder.xsi
Criterion Covered Total %
branch 23 42 54.7


line true false branch
6 5 0 segments.reserve(segStrings.size());
5 0 segments.reserve(segStrings.size());
8 5 0 for(auto it: segStrings) {
5 0 for(auto it: segStrings) {
6 5 for(auto it: segStrings) {
6 0 for(auto it: segStrings) {
9 6 0 SegmentString& ss = xs::in(it);
10 6 0 segments.push_back(&ss);
13 5 0 auto payload = new Noder_payload();
14 5 0 payload->array_ref = xs::Ref::create(segStrings);
18 5 0 Object self{ST(0)};
19 5 0 self.payload_attach(payload, &payload_marker_Noder);
21 5 0 THIS->computeNodes(&payload->segments);
25 6 0 auto items = THIS->getNodedSubstrings();
26 0 6 if (!items) XSRETURN_UNDEF;
28 6 0 xs::Array result = xs::Array::create(items->size());
29 22 6 for(auto it: *items) {
30 22 0 result.push(xs::out(it));
22 0 result.push(xs::out(it));
32 6 0 delete items;
33 6 0 RETVAL = xs::Ref::create(result);