| bson/bson-memory.c | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 3 | 22 | 13.6 |
| line | true | false | branch |
|---|---|---|---|
| 67 | 0 | 2140 | if (!(mem = gMemVtable.malloc (num_bytes))) { |
| 102 | 0 | 0 | if (BSON_LIKELY (num_bytes)) { |
| 103 | 0 | 0 | if (BSON_UNLIKELY (!(mem = gMemVtable.calloc (1, num_bytes)))) { |
| 143 | 0 | 24 | if (BSON_UNLIKELY (num_bytes == 0)) { |
| 150 | 0 | 24 | if (BSON_UNLIKELY (!mem)) { |
| 246 | 0 | 0 | if (BSON_LIKELY (mem)) { |
| 276 | 0 | 0 | BSON_ASSERT (vtable); |
| 278 | 0 | 0 | if (!vtable->malloc || |
| 0 | 0 | if (!vtable->malloc || | |
| 279 | 0 | 0 | !vtable->calloc || |
| 280 | 0 | 0 | !vtable->realloc || |