ttscience / unbiased

API for clinical trial randomization
https://ttscience.github.io/unbiased/
Other
9 stars 1 forks source link

Validation code path in randomization endpoint never reached by tests #72

Closed lwalejko closed 6 months ago

lwalejko commented 6 months ago

There is a code path in api_randomize_patient that is not executed during testing: https://app.codecov.io/gh/ttscience/unbiased/pull/60/blob/R/api_randomize.R#L59 We should include test that will hit this code or, if this code is impossible to reach, we should remove it and replace it with simple assertion that will throw error