Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more unit tests for coverage #34

Closed
17 tasks
fredjaya opened this issue Dec 8, 2023 · 1 comment
Closed
17 tasks

Add more unit tests for coverage #34

fredjaya opened this issue Dec 8, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@fredjaya
Copy link
Collaborator

fredjaya commented Dec 8, 2023

Tests required for the following.

pooling_strategies.R

  • pool_max_size()
  • pool_target_number()

pool_strat_methods.R

  • print.pool_strat()

catch_distributions.R

  • nb_catch()
  • pois_catch()

util.R

  • mu_sigma_linknorm() - this stop() is only likely encountered if using the function directly. Keep, but add a no cov
  • ev()
  • Repeated warning for increasing max_s #23
  • optimise_random_prevalence()
  • optim_local_int()
  • cost_fi_random()
  • cost_fi_cluster_random()

design_effect.R

  • design_effect_random()

fisher_information.R

  • Some cases in fi_pool_cluster() - prioritise last, aside from:
  • fi_pool_cluster() when not real_scale
  • fi_pool_random()
  • fi_pool_cluster_random()
@fredjaya fredjaya self-assigned this Dec 8, 2023
@fredjaya fredjaya added the tests label Dec 8, 2023
@fredjaya fredjaya added this to the v0.1.2 milestone Dec 8, 2023
@fredjaya
Copy link
Collaborator Author

fredjaya commented Jun 6, 2024

coverage back up to ~90%, remaining uncovered lines are mainly warnings()

@fredjaya fredjaya closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant