Skip to content

Commit

Permalink
Add nocov to branches of sTeve() that depend on the month.
Browse files Browse the repository at this point in the history
The actual code is already covered, this concerns the case
when the type parameter is missing.
  • Loading branch information
mcol committed Oct 7, 2024
1 parent 36b0b43 commit 3c65df9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ sTeve<- function(n_frames = 10, t_animation = 2, n.tree = 7, type) {

## select showtime item based on month or user-defined type
if(missing(type) == TRUE) {
# nocov start
if(month >= 1 & month <= 3) {
type <- 1
} else if(month >3 & month <= 11) {
type <- 2
} else if(month > 11 & month <= 12) {
type <- 3
}
# nocov end
}


Expand Down

0 comments on commit 3c65df9

Please sign in to comment.