R Under development (unstable) (2026-03-25 r89703 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(AplosNCA) > library(httptest2) > library(AzureAuth) # For mocking decode_jwt > library(jsonlite) > library(downloader) > library(utils) > library(withr) > > # Global mock for decode_jwt to avoid parse errors in check environment > local_mocked_bindings( + decode_jwt = function(...) list(payload = list(`custom:aplos_user_tenant_id` = "fake_tenant", `custom:aplos_user_id` = "fake_user")), + .package = "AzureAuth" + ) > > test_check("AplosNCA") Results file downloaded to results/fake.zip Results file unzipped. Location is results/unzip Execution complete. [ FAIL 0 | WARN 0 | SKIP 0 | PASS 22 ] > > proc.time() user system elapsed 1.04 0.48 1.51 Ran 4/4 deferred expressions