Branch Coverage

third_party/modest/source/mycore/utils/mhash.c
Criterion Covered Total %
branch 0 66 0.0


line true false branch
27 0 0 for(hash = i = 0; i < key_size; i++)
51 0 0 if(mhash->mchar_obj == NULL)
54 0 0 if((status = mchar_async_init(mhash->mchar_obj, 128, 4096)))
59 0 0 if(status)
62 0 0 if(table_size < 128)
66 0 0 if(mhash->table == NULL)
69 0 0 if(max_depth < 1)
86 0 0 if(mhash == NULL)
89 0 0 if(mhash->table) {
94 0 0 if(self_destroy) {
109 0 0 if(entry->key == NULL) {
126 0 0 if(key == NULL || key_size == 0)
0 0 if(key == NULL || key_size == 0)
134 0 0 if(mhash->table[hash_id] == NULL) {
136 0 0 if(mhash->table_length >= (mhash->table_size - (mhash->table_size / 4))) {
148 0 0 if(entry->key_length == key_size) {
149 0 0 if(strncmp(entry->key, key, key_size) == 0)
153 0 0 if(entry->next == NULL) {
156 0 0 if(depth > mhash->table_max_depth) {
176 0 0 if(entry)
184 0 0 if(key == NULL || key_size == 0)
0 0 if(key == NULL || key_size == 0)
191 0 0 while(entry) {
192 0 0 if(entry->key_length == key_size) {
193 0 0 if(strncmp(entry->key, key, key_size) == 0)
205 0 0 if(mhash->table_size > id)
218 0 0 if(key == NULL || key_size == 0)
0 0 if(key == NULL || key_size == 0)
225 0 0 if(mhash->table[hash_id] == NULL) {
233 0 0 if(entry->next == NULL) {
253 0 0 if(mhash->table == NULL) {
260 0 0 for(size_t i = 0; i < mhash->table_size; i++) {
263 0 0 while(entry) {