More lcov exclusions.

poly1305 optimized implementations will come after 1.0.
This commit is contained in:
Frank Denis 2014-09-16 10:43:38 -07:00
parent cee8af9b66
commit 7cf7f0a31c
3 changed files with 8 additions and 6 deletions

View File

@ -2,6 +2,7 @@
#include "crypto_onetimeauth_poly1305.h"
#include "donna/poly1305_donna.h"
/* LCOV_EXCL_START */
static const crypto_onetimeauth_poly1305_implementation *implementation =
&crypto_onetimeauth_poly1305_donna_implementation;
@ -18,6 +19,7 @@ crypto_onetimeauth_poly1305_implementation_name(void)
{
return implementation->implementation_name();
}
/* LCOV_EXCL_STOP */
int
crypto_onetimeauth_poly1305(unsigned char *out, const unsigned char *in,

View File

@ -93,12 +93,12 @@ safe_read(const int fd, void * const buf_, size_t count)
assert(count > (size_t) 0U);
do {
while ((readnb = read(fd, buf, count)) < (ssize_t) 0 &&
errno == EINTR);
errno == EINTR); /* LCOV_EXCL_LINE */
if (readnb < (ssize_t) 0) {
return readnb;
return readnb; /* LCOV_EXCL_LINE */
}
if (readnb == (ssize_t) 0) {
break;
break; /* LCOV_EXCL_LINE */
}
count -= (size_t) readnb;
buf += readnb;

View File

@ -83,12 +83,12 @@ safe_read(const int fd, void * const buf_, size_t count)
assert(count > (size_t) 0U);
do {
while ((readnb = read(fd, buf, count)) < (ssize_t) 0 &&
errno == EINTR);
errno == EINTR); /* LCOV_EXCL_LINE */
if (readnb < (ssize_t) 0) {
return readnb;
return readnb; /* LCOV_EXCL_LINE */
}
if (readnb == (ssize_t) 0) {
break;
break; /* LCOV_EXCL_LINE */
}
count -= (size_t) readnb;
buf += readnb;