Branch Coverage

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


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