Skip to content

Commit b139a84

Browse files
committed
coverage markers
1 parent b66c306 commit b139a84

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/init.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ static void PreserveObjects(void) {
116116
Rf_classgets(nano_unresolved, Rf_mkString("unresolvedValue"));
117117
}
118118

119+
// # nocov start
119120
static void ReleaseObjects(void) {
120121
R_ReleaseObject(nano_unresolved);
121122
R_ReleaseObject(nano_success);
@@ -129,6 +130,7 @@ static void ReleaseObjects(void) {
129130
R_ReleaseObject(nano_aioFuncs);
130131
R_ReleaseObject(nano_aioFormals);
131132
}
133+
// # nocov end
132134

133135
static const R_CallMethodDef callMethods[] = {
134136
{"rnng_aio_call", (DL_FUNC) &rnng_aio_call, 1},
@@ -219,6 +221,8 @@ void attribute_visible R_init_nanonext(DllInfo* dll) {
219221
R_forceSymbols(dll, TRUE);
220222
}
221223

224+
// # nocov start
222225
void attribute_visible R_unload_nanonext(DllInfo *info) {
223226
ReleaseObjects();
224227
}
228+
// # nocov end

tests/tests.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ nanotest(is.environment(set_promise_context(new.env(), new.env())))
522522

523523
nanotest(base64enc("test") == "dGVzdA==")
524524
nanotest(base64dec(base64enc("test")) == "test")
525+
nanotest(is.character(base64enc(c("vector", "test"))))
525526
nanotest(is.raw(base64enc(data.frame(), convert = FALSE)))
526527
nanotest(is.raw(base64dec(base64enc(as.raw(c(1L, 2L)), convert = FALSE), convert = FALSE)))
527528
nanotest(is.integer(base64dec(base64enc(c(1L, 2L)), convert = NA)))

0 commit comments

Comments
 (0)