R/srr-testing-standards.R

#' srr_stats_testing
#'
#' Unit tests document the package's validation and native-code smoke checks.
#'
#' @srrstats {G5.0} Tests use deterministic fixtures with fixed seeds.
#' @srrstats {G5.1} Test fixtures are constructed in test helper files.
#' @srrstats {G5.2} Error behavior is covered by unit tests.
#' @srrstats {G5.2a} User-facing validation messages are unique enough to test
#' directly.
#' @srrstats {G5.2b} Tests assert representative validation errors.
#' @srrstats {G5.3} Tests assert finite outputs for valid stress designs.
#' @srrstats {G5.4} Correctness tests cover deterministic properties of the
#' native backend and wrapper outputs.
#' @srrstats {G5.4a} The method is an implementation of published PCOP
#' algorithms, not a novel method without references.
#' @srrstats {G5.4b} The package is a port of the original C++ implementation;
#' tests keep deterministic native-output contracts stable.
#' @srrstats {G5.4c} The vignette includes reproducible synthetic examples.
#' @srrstats {G5.5} Tests and examples use fixed seeds for generated data.
#' @srrstats {G5.6} Synthetic stress tests cover representative point-cloud
#' shapes and dimensions.
#' @srrstats {G5.6a} Numerical tests use finite-output and tolerance assertions.
#' @srrstats {G5.6b} No stochastic optimization is performed by `pcop()`.
#' @srrstats {G5.7} Tests cover the exported wrapper and internal backend.
#' @srrstats {G5.8} Edge-condition tests cover invalid types, non-finite values,
#' tuning-parameter ranges, and plotting preconditions.
#' @srrstats {G5.8a} Empty and too-small input matrices error before native code.
#' @srrstats {G5.8b} Unsupported input types error.
#' @srrstats {G5.8c} Missing and non-finite values error.
#' @srrstats {G5.8d} Out-of-range tuning parameters error with clear messages.
#' @srrstats {G5.9} Noise behavior is covered through fixed-seed synthetic data.
#' @srrstats {G5.9a} Stress fixtures include low-rank and anisotropic data.
#' @srrstats {G5.9b} See G5.5.
#' @srrstats {G5.10} No extended test suite is required for current package
#' claims.
#' @srrstats {G5.11} No extended-test downloads are required.
#' @srrstats {G5.11a} See G5.11.
#' @srrstats {G5.12} CONTRIBUTING documents local check workflow.
#' @noRd
NULL

Try the Rpcop package in your browser

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

Rpcop documentation built on June 24, 2026, 5:08 p.m.