Intro

Because functions give outputs as plots, unit testing would not work; manually testing each function instead.

Query 1

Expect success

?query1
query1()
query1(plot_type = "static", fill = "deaths")
query1(plot_type = "static", fill = "days")
query1(plot_type = "static", fill = "cases", log_scale = TRUE)
query1(plot_type = "static", fill = "deaths", log_scale = TRUE)
query1(plot_type = "static", fill = "days", log_scale = TRUE)
query1(projection = "globular")
query1(projection = "gilbert")
query1(plot_type = "dynamic")
query1(plot_type = "dynamic", fill = "deaths")
query1(plot_type = "dynamic", fill = "days")
query1(plot_type = "dynamic", fill = "cases", log_scale = TRUE)
query1(plot_type = "dynamic", fill = "deaths", log_scale = TRUE)
query1(plot_type = "dynamic", fill = "days", log_scale = TRUE)
query1(plot_type = "dynamic", fill = "deaths", log_scale = TRUE, projection = "gilbert")
# should ignore projection for now
query1(palette = "YlGnBu")
query1(plot_type = "dynamic", palette = "Reds", log_scale = T)

Expect failuire

query1(plot_type = "null")
query1(fill = 1)
query1(log_scale = 1)
query1(projection = 9)
query1(palette = "rainbow")


tomzhang255/covidviz documentation built on May 15, 2022, 6:59 a.m.