uribo / jpmesh

Compare b15f70d ... +0 ... 20845c8

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 7 files from the diff.

@@ -12,11 +12,15 @@
Loading
12 12
#' }
13 13
#' @name administration_mesh
14 14
#' @export
15 -
administration_mesh <- function(code, to_mesh_size = c(80, 10, 1)) {
16 -
  if (!to_mesh_size %in% c(80, 10, 1))
17 -
    rlang::abort("`to_mesh_size expects 80, 10 or 1`")
18 -
  to_mesh_size <- units::as_units(to_mesh_size, "km")
19 -
  checked_code <- code_reform(code) # nolint
15 +
administration_mesh <- function(code, to_mesh_size) {
16 +
  to_mesh_size_chr <-
17 +
    as.character(to_mesh_size)
18 +
  rlang::arg_match(to_mesh_size_chr,
19 +
                   c("80", "10", "1"))
20 +
  to_mesh_size <-
21 +
    units::as_units(as.numeric(to_mesh_size), "km")
22 +
  checked_code <-
23 +
    code_reform(code)
20 24
  mis_match <-
21 25
    checked_code[!checked_code %in% c(sprintf("%02d", seq_len(47)),
22 26
                                      unique(df_city_mesh$city_code))]

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R 0.24% 92.53%
Project Totals (10 files) 92.53%
Loading