Branch Coverage

deps/msgpack-c/include/msgpack/unpack_template.h
Criterion Covered Total %
branch 33 126 26.1


line true false branch
96 0 21 assert(len >= *off);
168 7 14 if(p == pe) { goto _out; }
170 27 0 switch(cs) {
174 0 2 push_fixed_value(_uint8, *(uint8_t*)p);
176 0 1 push_fixed_value(_int8, *(int8_t*)p);
180 0 1 push_simple_value(_nil);
184 0 2 push_simple_value(_false);
186 0 2 push_simple_value(_true);
210 0 1 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE,
213 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 16+1, _ext_zero);
229 0 1 again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, ((unsigned int)*p & 0x1f), _str_zero);
231 0 3 start_container(_array, ((unsigned int)*p) & 0x0f, MSGPACK_CT_ARRAY_ITEM);
0 3 start_container(_array, ((unsigned int)*p) & 0x0f, MSGPACK_CT_ARRAY_ITEM);
0 3 start_container(_array, ((unsigned int)*p) & 0x0f, MSGPACK_CT_ARRAY_ITEM);
233 0 2 start_container(_map, ((unsigned int)*p) & 0x0f, MSGPACK_CT_MAP_KEY);
0 2 start_container(_map, ((unsigned int)*p) & 0x0f, MSGPACK_CT_MAP_KEY);
0 2 start_container(_map, ((unsigned int)*p) & 0x0f, MSGPACK_CT_MAP_KEY);
247 0 25 if((size_t)(pe - p) < trail) { goto _out; }
255 0 0 push_fixed_value(_float, mem.f); }
265 0 1 push_fixed_value(_double, mem.f); }
267 0 0 push_fixed_value(_uint8, *(uint8_t*)n);
271 0 0 push_fixed_value(_uint16, tmp);
276 0 0 push_fixed_value(_uint32, tmp);
281 0 0 push_fixed_value(_uint64, tmp);
284 0 0 push_fixed_value(_int8, *(int8_t*)n);
288 0 0 push_fixed_value(_int16, tmp);
293 0 0 push_fixed_value(_int32, tmp);
298 0 0 push_fixed_value(_int64, tmp);
301 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 1+1, _ext_zero);
303 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 2+1, _ext_zero);
305 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 4+1, _ext_zero);
307 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 8+1, _ext_zero);
309 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, 16+1, _ext_zero);
311 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, *(uint8_t*)n, _str_zero);
313 0 10 again_fixed_trail_if_zero(MSGPACK_ACS_BIN_VALUE, *(uint8_t*)n, _bin_zero);
315 0 1 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, (*(uint8_t*)n) + 1, _ext_zero);
319 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, tmp, _str_zero);
324 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_BIN_VALUE, tmp, _bin_zero);
329 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, tmp + 1, _ext_zero);
334 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_STR_VALUE, tmp, _str_zero);
339 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_BIN_VALUE, tmp, _bin_zero);
344 0 0 again_fixed_trail_if_zero(MSGPACK_ACS_EXT_VALUE, tmp + 1, _ext_zero);
348 0 1 push_variable_value(_str, data, n, trail);
351 0 10 push_variable_value(_bin, data, n, trail);
354 0 2 push_variable_value(_ext, data, n, trail);
359 0 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
0 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
0 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
365 0 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
0 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
0 0 start_container(_array, tmp, MSGPACK_CT_ARRAY_ITEM);
371 0 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
0 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
0 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
377 0 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
0 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
0 0 start_container(_map, tmp, MSGPACK_CT_MAP_KEY);
387 14 13 if(top == 0) { goto _finish; }
392 0 5 if(ret < 0) { goto _failed; }
393 3 2 if(--c->count == 0) {
406 0 4 if(ret < 0) { goto _failed; }
407 2 2 if(--c->count == 0) {
424 13 0 } while(p != pe);