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 22 132 16.6


line true false branch
16 0 0 if (!map) {
0 0 if (!map) {
0 0 if (!map) {
0 0 if (!map) {
8 0 if (!map) {
1 0 if (!map) {
17 0 0 thread_local struct { DynCastCacheMap map; } wrp;
0 0 thread_local struct { DynCastCacheMap map; } wrp;
0 0 thread_local struct { DynCastCacheMap map; } wrp;
0 0 thread_local struct { DynCastCacheMap map; } wrp;
8 0 thread_local struct { DynCastCacheMap map; } wrp;
1 0 thread_local struct { DynCastCacheMap map; } wrp;
32 0 0 if (!obj) return NULL;
0 0 if (!obj) return NULL;
3 0 if (!obj) return NULL;
16 0 if (!obj) return NULL;
6 8 if (!obj) return NULL;
13 1 if (!obj) return NULL;
34 0 0 intptr_t key = (intptr_t)typeid(*obj).name();
0 0 intptr_t key = (intptr_t)typeid(*obj).name();
0 0 intptr_t key = (intptr_t)typeid(*obj).name();
0 0 intptr_t key = (intptr_t)typeid(*obj).name();
8 0 intptr_t key = (intptr_t)typeid(*obj).name();
1 0 intptr_t key = (intptr_t)typeid(*obj).name();
37 0 0 DynCastCacheMap::iterator it = map.find(key);
0 0 DynCastCacheMap::iterator it = map.find(key);
0 0 DynCastCacheMap::iterator it = map.find(key);
0 0 DynCastCacheMap::iterator it = map.find(key);
8 0 DynCastCacheMap::iterator it = map.find(key);
1 0 DynCastCacheMap::iterator it = map.find(key);
38 0 0 if (it != map.end())
0 0 if (it != map.end())
0 0 if (it != map.end())
0 0 if (it != map.end())
0 8 if (it != map.end())
0 1 if (it != map.end())
39 0 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;
0 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;
0 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 0 DERIVED* ret = dynamic_cast(obj);
0 0 DERIVED* ret = dynamic_cast(obj);
0 0 DERIVED* ret = dynamic_cast(obj);
0 0 DERIVED* ret = dynamic_cast(obj);
0 8 DERIVED* ret = dynamic_cast(obj);
0 1 DERIVED* ret = dynamic_cast(obj);
41 0 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;
0 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;
0 0 if (ret) map[key] = (char*)obj - (char*)ret;
0 0 if (ret) map[key] = (char*)obj - (char*)ret;
0 8 if (ret) map[key] = (char*)obj - (char*)ret;
0 0 if (ret) map[key] = (char*)obj - (char*)ret;
0 1 if (ret) map[key] = (char*)obj - (char*)ret;
0 0 if (ret) map[key] = (char*)obj - (char*)ret;
42 0 0 else map[key] = INCORRECT_PTRDIFF;
0 0 else map[key] = INCORRECT_PTRDIFF;
0 0 else map[key] = INCORRECT_PTRDIFF;
0 0 else map[key] = INCORRECT_PTRDIFF;
8 0 else map[key] = INCORRECT_PTRDIFF;
1 0 else map[key] = INCORRECT_PTRDIFF;