Branch Coverage

src/ldns/compat/strlcpy.c
Criterion Covered Total %
branch 6 14 42.8


line true false branch
39 14 0 if (n != 0 && --n != 0) {
14 0 if (n != 0 && --n != 0) {
41 14 100 if ((*d++ = *s++) == 0)
43 100 0 } while (--n != 0);
47 0 14 if (n == 0) {
48 0 0 if (siz != 0)
50 0 0 while (*s++)