This page is a feature-area map of the test suite (not the line-by-line HTML coverage report).
- HTML coverage report: see Coverage (links to
docs/coverage/)
- Source map:
tests/testthat/COVERAGE_MAP.md
Map (feature areas → tests)
Legend
- ✅ Covered
- ⚠️ Partial coverage
- ❌ Not covered / Missing
- 🔧 Needs refactoring
Kernel library (d/p/q/r)
| Mix d/p/q/r functions |
test-kernels.R |
✅ |
| Mix+GPD splice behavior |
test-kernels.R |
✅ |
| Scalar+GPD behavior |
test-kernels.R |
✅ |
| Roundtrip q(p) → p(q) |
test-kernels.R |
✅ |
| Edge cases (bounds, NA) |
test-kernels.R |
⚠️ Some covered |
Bundle build layer
| Spec validation |
test-bundle.R |
✅ |
| CRP vs SB code assembly |
test-dispatch-separation.R |
✅ |
| Kernel registry |
test-smoke-core-workflows.R |
✅ |
| Input validation errors |
test-bundle.R |
✅ |
| Conditional (with X) |
test-smoke-core-workflows.R |
✅ |
| GPD flag handling |
test-smoke-core-workflows.R |
✅ |
MCMC run layer
| Compile + run returns structure |
Per-kernel tests (test-normal.R, etc.) |
✅ |
| SB backend workflows |
Per-kernel tests |
✅ |
| CRP backend workflows |
Per-kernel tests |
✅ |
| GPD vs non-GPD |
Per-kernel tests |
✅ |
| Conditional vs unconditional |
Per-kernel tests |
✅ |
| Caching behavior |
helper-cache.R (infrastructure) |
⚠️ Indirect |
Prediction layer
type="mean" |
test-predict-unconditional.R, helper-predict-distribution.R |
✅ |
type="median" |
test-predict-unconditional.R |
✅ |
type="quantile" |
test-predict-contracts.R, helper-predict-distribution.R |
✅ |
type="sample" |
helper-predict-distribution.R |
✅ |
type="density" |
helper-predict-distribution.R |
✅ |
type="survival" |
helper-predict-distribution.R |
✅ |
| Conditional x/newdata contracts |
test-predict-contracts.R |
✅ |
| Parallel ncores determinism |
test-predict-contracts.R |
✅ |
| Credible intervals |
test-predict-contracts.R |
✅ |
S3 methods & UX
Note: fitted.mixgpd_fit and residuals.mixgpd_fit are conditional-only (covariate models).
print.mixgpd_fit |
helper-predict-distribution.R |
✅ |
summary.mixgpd_fit |
helper-predict-distribution.R |
✅ |
plot.mixgpd_fit |
helper-predict-distribution.R |
✅ |
fitted.mixgpd_fit (conditional only) |
test-fitted.R, test-hpd-intervals.R |
✅ |
residuals.mixgpd_fit (raw; conditional only) |
test-fitted.R |
✅ |
residuals.mixgpd_fit (PIT; conditional only) |
helper-predict-distribution.R when has_X |
✅ |
plot.mixgpd_predict |
test-predict-unconditional.R |
✅ |
plot.mixgpd_fitted |
test-fitted.R |
✅ |
params() extractor |
test-fitted.R, test-causal-predict.R |
✅ |
Causal inference
build_causal_bundle |
test-smoke-core-workflows.R, test-causal.R |
✅ |
run_mcmc_causal |
test-causal.R |
✅ |
| PS models: logit/probit/naive/disabled |
test-causal.R |
✅ |
| Mixed backends (trt/con) |
test-causal.R |
✅ |
cate() / cqte() |
test-causal.R |
✅ |
ate() / qte() |
test-causal.R |
✅ |
att() / qtt() |
test-causal.R |
✅ |
| Credible intervals |
test-causal.R |
✅ |
Keep this map up to date
When adding or moving tests, update tests/testthat/COVERAGE_MAP.md and (optionally) mirror key rows here.
Prereqs
- Required packages and data for this page are listed in the setup chunks above.
Outputs
- This page renders model fits, diagnostics, and summary artifacts generated by package APIs.
Interpretation
- Canonical concept page: Spec And Contracts
- Treat this page as an application/example view and use the canonical page for core definitions.
Next
- Continue to the linked canonical concept page, then return for implementation-specific details.