Branch Coverage

/usr/local/lib/perl5/site_perl/5.26.1/x86_64-linux/XS/libpanda.x/i/panda/cast.h
Criterion Covered Total %
branch 68 132 51.5


line true false branch
16 1 33 if (!map) {
1 5 if (!map) {
1 3 if (!map) {
3 22 if (!map) {
1 7 if (!map) {
0 0 if (!map) {
17 1 0 thread_local struct { DynCastCacheMap map; } wrp;
1 0 thread_local struct { DynCastCacheMap map; } wrp;
1 0 thread_local struct { DynCastCacheMap map; } wrp;
3 0 thread_local struct { DynCastCacheMap map; } wrp;
1 0 thread_local struct { DynCastCacheMap map; } wrp;
0 0 thread_local struct { DynCastCacheMap map; } wrp;
32 2 34 if (!obj) return NULL;
0 6 if (!obj) return NULL;
0 4 if (!obj) return NULL;
0 25 if (!obj) return NULL;
0 8 if (!obj) return NULL;
0 0 if (!obj) return NULL;
34 34 0 intptr_t key = (intptr_t)typeid(*obj).name();
6 0 intptr_t key = (intptr_t)typeid(*obj).name();
4 0 intptr_t key = (intptr_t)typeid(*obj).name();
25 0 intptr_t key = (intptr_t)typeid(*obj).name();
8 0 intptr_t key = (intptr_t)typeid(*obj).name();
0 0 intptr_t key = (intptr_t)typeid(*obj).name();
37 34 0 DynCastCacheMap::iterator it = map.find(key);
6 0 DynCastCacheMap::iterator it = map.find(key);
4 0 DynCastCacheMap::iterator it = map.find(key);
25 0 DynCastCacheMap::iterator it = map.find(key);
8 0 DynCastCacheMap::iterator it = map.find(key);
0 0 DynCastCacheMap::iterator it = map.find(key);
38 32 2 if (it != map.end())
5 1 if (it != map.end())
3 1 if (it != map.end())
21 4 if (it != map.end())
6 2 if (it != map.end())
0 0 if (it != map.end())
39 25 7 return it->second != INCORRECT_PTRDIFF ? reinterpret_cast((char*)obj - it->second) : NULL;
5 0 return it->second != INCORRECT_PTRDIFF ? reinterpret_cast((char*)obj - it->second) : NULL;
3 0 return it->second != INCORRECT_PTRDIFF ? reinterpret_cast((char*)obj - it->second) : NULL;
21 0 return it->second != INCORRECT_PTRDIFF ? reinterpret_cast((char*)obj - it->second) : NULL;
6 0 return it->second != INCORRECT_PTRDIFF ? reinterpret_cast((char*)obj - it->second) : NULL;
0 0 return it->second != INCORRECT_PTRDIFF ? reinterpret_cast((char*)obj - it->second) : NULL;
40 0 2 DERIVED* ret = dynamic_cast(obj);
0 1 DERIVED* ret = dynamic_cast(obj);
0 1 DERIVED* ret = dynamic_cast(obj);
0 4 DERIVED* ret = dynamic_cast(obj);
0 2 DERIVED* ret = dynamic_cast(obj);
0 0 DERIVED* ret = dynamic_cast(obj);
41 1 1 if (ret) map[key] = (char*)obj - (char*)ret;
1 0 if (ret) map[key] = (char*)obj - (char*)ret;
1 0 if (ret) map[key] = (char*)obj - (char*)ret;
1 0 if (ret) map[key] = (char*)obj - (char*)ret;
1 0 if (ret) map[key] = (char*)obj - (char*)ret;
1 0 if (ret) map[key] = (char*)obj - (char*)ret;
3 1 if (ret) map[key] = (char*)obj - (char*)ret;
3 0 if (ret) map[key] = (char*)obj - (char*)ret;
1 1 if (ret) map[key] = (char*)obj - (char*)ret;
1 0 if (ret) map[key] = (char*)obj - (char*)ret;
0 0 if (ret) map[key] = (char*)obj - (char*)ret;
0 0 if (ret) map[key] = (char*)obj - (char*)ret;
42 1 0 else map[key] = INCORRECT_PTRDIFF;
0 0 else map[key] = INCORRECT_PTRDIFF;
0 0 else map[key] = INCORRECT_PTRDIFF;
1 0 else map[key] = INCORRECT_PTRDIFF;
1 0 else map[key] = INCORRECT_PTRDIFF;
0 0 else map[key] = INCORRECT_PTRDIFF;