Branch Coverage

src/xs/basic.cc
Criterion Covered Total %
branch 19 36 52.7


line true false branch
24 0 36 for (auto& f : end_cbs) f();
0 0 for (auto& f : end_cbs) f();
38 136 0 string module(strlen(rawmod) + bs.length() + 1);
39 136 0 module.assign(rawmod);
42 136 0 auto ptr = module.buf();
43 2278 136 for (size_t i = 0; i < len; ++i) {
44 204 2074 if (ptr[i] != '_' || i >= len - 1 || ptr[i+1] != '_') continue;
204 0 if (ptr[i] != '_' || i >= len - 1 || ptr[i+1] != '_') continue;
0 204 if (ptr[i] != '_' || i >= len - 1 || ptr[i+1] != '_') continue;
50 136 0 auto xsname = module + bs;
52 136 0 Sub sub = newXS(xsname.c_str(), bootfunc, file);
136 0 Sub sub = newXS(xsname.c_str(), bootfunc, file);
136 0 Sub sub = newXS(xsname.c_str(), bootfunc, file);
53 136 0 sub.call(Simple(module), Simple(version));
136 0 sub.call(Simple(module), Simple(version));
136 0 sub.call(Simple(module), Simple(version));
56 36 0 }
36 0 }