Branch Coverage

amqp_mem.c
Criterion Covered Total %
branch 30 50 60.0


line true false branch
53 125 0 pool->pagesize = pagesize ? pagesize : 4096;
69 137 829 if (x->blocklist != NULL) {
70 232 137 for (i = 0; i < x->num_blocks; i++) {
95 140 97 if (x->blocklist == NULL) {
97 0 140 if (x->blocklist == NULL) {
102 0 97 if (newbl == NULL) {
114 0 2619 if (amount == 0) {
120 28 2591 if (amount > pool->pagesize) {
122 0 28 if (result == NULL) {
125 0 28 if (!record_pool_block(&pool->large_blocks, result)) {
132 2238 353 if (pool->alloc_block != NULL) {
133 0 2238 assert(pool->alloc_used <= pool->pagesize);
135 2151 87 if (pool->alloc_used + amount <= pool->pagesize) {
142 209 231 if (pool->next_page >= pool->pages.num_blocks) {
144 0 209 if (pool->alloc_block == NULL) {
147 0 209 if (!record_pool_block(&pool->pages, pool->alloc_block)) {
178 0 0 if (result.bytes != NULL) {
200 951 55 for (; NULL != entry; entry = entry->next) {
201 951 0 if (channel == entry->channel) {
207 0 55 if (NULL == entry) {
227 479 0 for (; NULL != entry; entry = entry->next) {
228 479 0 if (channel == entry->channel) {
237 0 6 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))) {