Branch Coverage

t/typemap/function.xsi
Criterion Covered Total %
branch 14 58 24.1


line true false branch
21 1 0 fn();
25 1 0 fn(val);
29 1 0 auto fn = xs::sub2function(sub, [](int val) { return Simple(val + 100); });
30 1 0 fn(val);
34 1 0 auto fn = xs::sub2function(sub);
1 0 auto fn = xs::sub2function(sub);
35 1 0 RETVAL = fn(i, d);
41 1 0 [=](const Sv& sv) { return SvIV(sv) + 10; },
43 1 0 );
44 1 0 RETVAL = fn(i, d);
49 1 0 }
54 1 0 [=](const Sv& sv) { return Data((int)Simple(sv) + 1); },
56 1 0 );
58 1 0 auto ret = fn(arg);
64 0 0 for (int i = 0; i < cnt; ++i) {
65 0 0 RETVAL += (uint64_t)sub2function(sub).func.get();
71 0 0 for (int i = 0; i < cnt; ++i) {
72 0 0 RETVAL += (uint64_t)sub2function(sub).func.get();
78 0 0 for (int i = 0; i < cnt; ++i) {
79 0 0 RETVAL += (uint64_t)sub2function(sub).func.get();
85 0 0 vv_fn fn = [](){};
86 0 0 for (int i = 0; i < cnt; ++i) {
87 0 0 RETVAL += (uint64_t)function2sub(fn).get();
93 0 0 vi_fn fn = [](int){};
94 0 0 for (int i = 0; i < cnt; ++i) {
95 0 0 RETVAL += (uint64_t)function2sub(fn).get();
101 0 0 iis_fn fn = [](int a, string_view d) -> int { return a + d.length(); };
102 0 0 for (int i = 0; i < cnt; ++i) {
103 0 0 RETVAL += (uint64_t)function2sub(fn).get();