epiforecasts / forecast.vocs

Contains models and tools to produce short-term forecasts for both case and sequence notifications assuming circulation of either one or two variants. Tools are also provided to allow the evaluation of the use of sequence data for short-term forecasts in both real-world settings and in user generated scenarios.
http://epiforecasts.io/forecast.vocs
Other
8 stars 3 forks source link

Feature: Test postprocessing #78

Closed seabbs closed 3 years ago

seabbs commented 3 years ago

This PR adds tests for all exported post processing functions using a shared fit from tests/testthat/setup.R.

Note that tests for summarise_posterior check most but not all of the output with inference of correct forecast dates left to extract_forecast_dates.

codecov[bot] commented 3 years ago

Codecov Report

Merging #78 (27e830b) into main (d5df499) will increase coverage by 29.23%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main      #78       +/-   ##
===========================================
+ Coverage   26.76%   56.00%   +29.23%     
===========================================
  Files          10       10               
  Lines         665      666        +1     
===========================================
+ Hits          178      373      +195     
+ Misses        487      293      -194     
Impacted Files Coverage Δ
R/postprocess.R 98.48% <100.00%> (+98.48%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d5df499...27e830b. Read the comment docs.