#710 Checking if router modified in plumb block is the one the argument

Open Bruno Tremblay meztez

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.

@@ -304,7 +304,12 @@
Loading
304 304
        stopOnLine(lineNum, file[lineNum], e)
305 305
      })
306 306
      if (is.function(func)) {
307 -
        func(pr)
307 +
        assign(".__plump_block_check__", TRUE, envir = envir)
308 +
        on.exit(rm(".__plump_block_check__", envir = envir), add = TRUE)
309 +
        fpr <- func(pr)
310 +
        if (inherits(fpr, "Plumber") && !isTRUE(fpr$environment[[".__plump_block_check__"]])) {
311 +
          stopOnLine(lineNum, file[lineNum], "Plumber object returned is not the same as the one in argument.")
312 +
        }
308 313
        return()
309 314
      }
310 315
    }

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.01% 80.38%
Project Totals (35 files) 80.38%
Loading