Branch Coverage

limits.c
Criterion Covered Total %
branch 28 34 82.3


line true false branch
72 0 28 if (width < 0) {
76 0 28 if (height < 0) {
83 8 20 aIMCTX->max_bytes = bytes ? bytes : DEF_BYTES_LIMIT;
152 6 298 if (width <= 0) {
157 16 282 if (aIMCTX->max_width && width > aIMCTX->max_width) {
5 11 if (aIMCTX->max_width && width > aIMCTX->max_width) {
163 1 292 if (height <= 0) {
169 13 279 if (aIMCTX->max_height && height > aIMCTX->max_height) {
3 10 if (aIMCTX->max_height && height > aIMCTX->max_height) {
175 288 1 if (channels < 1 || channels > MAXCHANNELS) {
0 288 if (channels < 1 || channels > MAXCHANNELS) {
181 287 1 if (sample_size < 1 || sample_size > sizeof(long double)) {
1 286 if (sample_size < 1 || sample_size > sizeof(long double)) {
192 286 0 if (bytes / width != height * channels * sample_size
193 0 286 || bytes / height != width * channels * sample_size) {
197 286 0 if (aIMCTX->max_bytes) {
198 4 282 if (bytes > aIMCTX->max_bytes) {