Skip to content

Commit 24e8178

Browse files
committed
Add codecov suppressions
1 parent 22981ad commit 24e8178

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hash.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static const double hash_multiplier = 0.618033988749895;
1616

1717
hashtab * hash_create_(size_t n, double load_factor) {
1818
if (load_factor <= 0 || load_factor >= 1)
19-
internal_error("hash_create", "load_factor=%g not in (0, 1)", load_factor);
19+
internal_error("hash_create", "load_factor=%g not in (0, 1)", load_factor); // # nocov
2020
// precondition: n / load_factor < SIZE_MAX
2121
// truncate to compare in exact integer arithmetic and preserve all bits of n
2222
if ((size_t)(SIZE_MAX * load_factor) <= n) internal_error(
@@ -66,7 +66,7 @@ void hash_set(hashtab * h, SEXP key, R_xlen_t value) {
6666
return;
6767
}
6868
}
69-
internal_error(
69+
internal_error( // # nocov
7070
"hash_insert", "did not find a free slot for key %p; size=%zu, free=%zu",
7171
(void*)key, h->size, h->free
7272
);
@@ -82,5 +82,5 @@ R_xlen_t hash_lookup(const hashtab * h, SEXP key, R_xlen_t ifnotfound) {
8282
}
8383
}
8484
// Should be impossible with a load factor below 1, but just in case:
85-
return ifnotfound;
85+
return ifnotfound; // # nocov
8686
}

0 commit comments

Comments
 (0)