tests/testthat/test-init.R

test_that("the compiled library is loaded", {
  expect_true("zucbor" %in% names(getLoadedDLLs()))
})

test_that("native symbols resolve only through the registration table", {
  # R_useDynamicSymbols(dll, FALSE) in src/init.c: an entry point missing
  # from the .Call table must not be reachable by name.
  dll <- getLoadedDLLs()[["zucbor"]]
  expect_false(dll[["dynamicLookup"]])
})

Try the zucbor package in your browser

Any scripts or data that you put into this service are public.

zucbor documentation built on Oct. 21, 2026, 5:14 p.m.