Branch Coverage

amqp_mem.c
Criterion Covered Total %
branch 2 50 4.0


line true false branch
21 33 0 pool->pagesize = pagesize ? pagesize : 4096;
37 0 132 if (x->blocklist != NULL) {
38 0 0 for (i = 0; i < x->num_blocks; i++) {
63 0 0 if (x->blocklist == NULL) {
65 0 0 if (x->blocklist == NULL) {
70 0 0 if (newbl == NULL) {
82 0 0 if (amount == 0) {
88 0 0 if (amount > pool->pagesize) {
90 0 0 if (result == NULL) {
93 0 0 if (!record_pool_block(&pool->large_blocks, result)) {
100 0 0 if (pool->alloc_block != NULL) {
101 0 0 assert(pool->alloc_used <= pool->pagesize);
103 0 0 if (pool->alloc_used + amount <= pool->pagesize) {
110 0 0 if (pool->next_page >= pool->pages.num_blocks) {
112 0 0 if (pool->alloc_block == NULL) {
115 0 0 if (!record_pool_block(&pool->pages, pool->alloc_block)) {
146 0 0 if (result.bytes != NULL) {
168 0 0 for (; NULL != entry; entry = entry->next) {
169 0 0 if (channel == entry->channel) {
175 0 0 if (NULL == entry) {
195 0 0 for (; NULL != entry; entry = entry->next) {
196 0 0 if (channel == entry->channel) {
205 0 0 if (r.len == l.len &&
206 0 0 (r.bytes == l.bytes || 0 == memcmp(r.bytes, l.bytes, r.len))) {
0 0 (r.bytes == l.bytes || 0 == memcmp(r.bytes, l.bytes, r.len))) {