Branch Coverage

amqp_mem.c
Criterion Covered Total %
branch 29 50 58.0


line true false branch
53 119 0 pool->pagesize = pagesize ? pagesize : 4096;
69 131 825 if (x->blocklist != NULL) {
70 235 131 for (i = 0; i < x->num_blocks; i++) {
95 131 104 if (x->blocklist == NULL) {
97 0 131 if (x->blocklist == NULL) {
102 0 104 if (newbl == NULL) {
114 0 2576 if (amount == 0) {
120 25 2551 if (amount > pool->pagesize) {
122 0 25 if (result == NULL) {
125 0 25 if (!record_pool_block(&pool->large_blocks, result)) {
132 2206 345 if (pool->alloc_block != NULL) {
133 0 2206 assert(pool->alloc_used <= pool->pagesize);
135 2112 94 if (pool->alloc_used + amount <= pool->pagesize) {
142 210 229 if (pool->next_page >= pool->pages.num_blocks) {
144 0 210 if (pool->alloc_block == NULL) {
147 0 210 if (!record_pool_block(&pool->pages, pool->alloc_block)) {
178 0 0 if (result.bytes != NULL) {
200 965 52 for (; NULL != entry; entry = entry->next) {
201 965 0 if (channel == entry->channel) {
207 0 52 if (NULL == entry) {
227 478 0 for (; NULL != entry; entry = entry->next) {
228 478 0 if (channel == entry->channel) {
237 0 0 if (r.len == l.len &&
0 0 if (r.len == l.len &&
238 0 0 (r.bytes == l.bytes || 0 == memcmp(r.bytes, l.bytes, r.len))) {