ropensci / comtradr

Compare c61eb01 ... +0 ... 97c2ee1

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 1 files from the diff.

@@ -335,8 +335,8 @@
Loading
335 335
    "&p=", partners,
336 336
    "&rg=", trade_direction,
337 337
    "&cc=", commod_codes,
338 -
    "&fmt=", "json",
339 -
    "&head=", "H"
338 +
    "&head=", "H",
339 +
    "&fmt=", "json"
340 340
  )
341 341
342 342
  ## If token within global options is not NULL, append the token str to the
@@ -391,8 +391,9 @@
Loading
391 391
  if (httr::http_type(res) != "application/json") {
392 392
    stop(
393 393
      sprintf(
394 -
        "API did not return json. Instead, %s data was returned",
395 -
        httr::http_type(res)
394 +
        "API did not return json. Instead, %s data was returned. Return data:\n%s",
395 +
        httr::http_type(res),
396 +
        httr::content(res, "text", encoding = "UTF-8")
396 397
      ), call. = FALSE
397 398
    )
398 399
  }
@@ -547,7 +548,7 @@
Loading
547 548
#'
548 549
#' @noRd
549 550
codes_as_ints <- function(char_vect) {
550 -
  if (any(tolower(char_vect) %in% c("all", "total"))) {
551 +
  if (any(tolower(char_vect) %in% c("all", "total", "ag1", "ag2", "ag3", "ag4", "ag5"))) {
551 552
    return(TRUE)
552 553
  }
553 554
  as_ints <- suppressWarnings(as.integer(char_vect))

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.16% 77.33%
Project Totals (9 files) 77.33%
Loading