Branch Coverage

src/panda/glibc-dl.cc
Criterion Covered Total %
branch 15 24 62.5


line true false branch
14 8091 0 if (info->dlpi_name) {
17 522 7569 if (name.length() == 0) {
18 522 0 name.reserve(PATH_MAX);
19 522 0 auto len = readlink("/proc/self/exe", name.buf(), PATH_MAX);
20 522 0 if (len > 0) {
24 0 8091 if (!name) { return 0; }
28 58203 8091 for (int j = 0; j < info->dlpi_phnum; j++) {
32 17487 40716 if (e > end) { end = e; }
36 8091 0 container->emplace_back(SharedObjectInfo{begin, static_cast(end), false, name});
8091 0 container->emplace_back(SharedObjectInfo{begin, static_cast(end), false, name});
8091 0 container->emplace_back(SharedObjectInfo{begin, static_cast(end), false, name});
8091 0 container->emplace_back(SharedObjectInfo{begin, static_cast(end), false, name});