Skip to content

Commit

Permalink
mark nocov on some lines that covr cant touch
Browse files Browse the repository at this point in the history
  • Loading branch information
mjskay committed Feb 8, 2024
1 parent 361df2c commit 65678b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/abstract_geom.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ make_geom = function(geom,
params_to_defaults,
args_to_defaults
),
expr({
expr({ # nocov start
.Deprecated_arguments(!!geom$deprecated_params, ...)

l = layer(
Expand All @@ -221,7 +221,7 @@ make_geom = function(geom,
quote(l)
}
)
}),
}), # nocov end
env = parent.frame()
)
attr(body(new_f), "srcref") = NULL
Expand Down
4 changes: 2 additions & 2 deletions R/abstract_stat.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ make_stat = function(stat, geom,
params_to_defaults,
args_to_defaults
),
expr({
expr({ # nocov start
.Deprecated_arguments(!!stat$deprecated_params, ...)

(!!layer_function)(
Expand All @@ -165,7 +165,7 @@ make_stat = function(stat, geom,
...
)
)
}),
}), # nocov end
env = parent.frame()
)
attr(body(new_f), "srcref") = NULL
Expand Down
4 changes: 2 additions & 2 deletions R/subguide.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ get_subguide_position = function(position, orientation) {

stop0("Unknown position: ", deparse0(position))
),
stop0("Unknown orientation: ", deparse0(orientation))
stop0("Unknown orientation: ", deparse0(orientation)) # nocov
)
}
}
Expand Down Expand Up @@ -273,6 +273,6 @@ get_subguide_axis_position = function(side, position, orientation) {

stop0("Unknown side: ", deparse0(side))
),
stop0("Unknown orientation: ", deparse0(orientation))
stop0("Unknown orientation: ", deparse0(orientation)) # nocov
)
}

0 comments on commit 65678b4

Please sign in to comment.