Branch Coverage

base64.h
Criterion Covered Total %
branch 17 26 65.3


line true false branch
24 84 12 for (x = 0; x < dataLength; x += 3) {
29 84 0 if ((x + 1) < dataLength)
34 72 12 if ((x + 2) < dataLength) n += data[x + 2];
46 0 84 if (resultIndex >= resultSize) return 1; /* indicate failure: buffer too small */
48 0 84 if (resultIndex >= resultSize) return 1; /* indicate failure: buffer too small */
55 84 0 if ((x + 1) < dataLength) {
56 0 84 if (resultIndex >= resultSize) return 1; /* indicate failure: buffer too small */
64 72 12 if ((x + 2) < dataLength) {
65 0 72 if (resultIndex >= resultSize) return 1; /* indicate failure: buffer too small */
74 12 0 if (padCount > 0) {
75 12 12 for (; padCount < 3; padCount++) {
76 0 12 if (resultIndex >= resultSize) return 1; /* indicate failure: buffer too small */
80 0 12 if (resultIndex >= resultSize) return 1; /* indicate failure: buffer too small */