Branch Coverage

include/msgpack/unpack_template.h
Criterion Covered Total %
branch 57 92 61.9


line true false branch
177 1863 0 if(p == pe) { goto _out; }
179 21461 1 switch(cs) {
219 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE,
237 26 6 again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, ((unsigned int)*p & 0x1f), _str_zero);
239 2043 0 start_container(_array, ((unsigned int)*p) & 0x0f, MSGPACK_CT_ARRAY_ITEM);
2043 0 start_container(_array, ((unsigned int)*p) & 0x0f, MSGPACK_CT_ARRAY_ITEM);
390 1653 start_container(_array, ((unsigned int)*p) & 0x0f, MSGPACK_CT_ARRAY_ITEM);
241 1273 0 start_container(_map, ((unsigned int)*p) & 0x0f, MSGPACK_CT_MAP_KEY);
1273 0 start_container(_map, ((unsigned int)*p) & 0x0f, MSGPACK_CT_MAP_KEY);
313 960 start_container(_map, ((unsigned int)*p) & 0x0f, MSGPACK_CT_MAP_KEY);
253 9761 1255 if((size_t)(pe - p) < trail) { goto _out; }
276 0 382 _msgpack_load16(uint16_t,n,&tmp);
293 0 340 _msgpack_load16(int16_t,n,&tmp);
317 3 0 again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, *(uint8_t*)n, _str_zero);
319 2273 478 again_fixed_trail_if_zero(MSGPACK_ACS_BIN_VALUE, *(uint8_t*)n, _bin_zero);
321 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, (*(uint8_t*)n) + 1, _ext_zero);
324 0 10 _msgpack_load16(uint16_t,n,&tmp);
325 7 3 again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, tmp, _str_zero);
329 0 1027 _msgpack_load16(uint16_t,n,&tmp);
330 1027 0 again_fixed_trail_if_zero(MSGPACK_ACS_BIN_VALUE, tmp, _bin_zero);
334 0 0 _msgpack_load16(uint16_t,n,&tmp);
335 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, tmp + 1, _ext_zero);
340 7 3 again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, tmp, _str_zero);
345 8 0 again_fixed_trail_if_zero(MSGPACK_ACS_BIN_VALUE, tmp, _bin_zero);
350 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, tmp + 1, _ext_zero);
354 55 0 push_variable_value(_str, data, n, trail);
357 2729 0 push_variable_value(_bin, data, n, trail);
364 0 458 _msgpack_load16(uint16_t,n,&tmp);
365 458 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
458 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
3 455 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
371 8 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
8 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
3 5 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
376 0 10 _msgpack_load16(uint16_t,n,&tmp);
377 10 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
10 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
3 7 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
383 10 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
10 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
3 7 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
392 18263 395 if(top == 0) { goto _finish; }
397 605 15673 if(--c->count == 0) {
409 989 0 if(msgpack_unpack_callback(_map_item)(user, &c->obj, c->map_key, obj) < 0) { goto _failed; }
410 933 56 if(--c->count == 0) {
426 19599 213 } while(p != pe);