Branch Coverage

src/ldns/compat/b64_pton.c
Criterion Covered Total %
branch 19 44 43.1


line true false branch
130 0 4 if (strlen(origsrc) == 0) {
134 1065 0 while ((ch = *src++) != '\0') {
135 17 1048 if (isspace((unsigned char)ch)) /* Skip whitespace anywhere. */
138 4 1044 if (ch == Pad64)
142 0 1044 if (pos == 0) {
149 262 0 if (target) {
150 0 262 if ((size_t)tarindex >= targsize)
157 262 0 if (target) {
158 0 262 if ((size_t)tarindex + 1 >= targsize)
168 262 0 if (target) {
169 0 262 if ((size_t)tarindex + 1 >= targsize)
179 258 0 if (target) {
180 0 258 if ((size_t)tarindex >= targsize)
197 4 0 if (ch == Pad64) { /* We got a pad char. */
206 0 0 for ((void)NULL; ch != '\0'; ch = *src++)
207 0 0 if (!isspace((unsigned char)ch))
210 0 0 if (ch != Pad64)
221 0 4 for ((void)NULL; ch != '\0'; ch = *src++)
222 0 0 if (!isspace((unsigned char)ch))
231 4 0 if (target && target[tarindex] != 0)
0 4 if (target && target[tarindex] != 0)
239 0 0 if (state != 0)