Running ‘testthat.R’ [87s/190s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ops <- options("crayon.enabled" = FALSE, warn = 1)
  > library(testthat)
  > library("covr")
  > 
  > # Skip tests on Solaris as gcc is not in the PATH and I do not have an easy way
  > # to mimic the CRAN build environment
  > if (!tolower(Sys.info()[["sysname"]]) == "sunos") {
  +   Sys.setenv("R_TESTS" = "")
  +   test_check("covr")
  + }
  [ FAIL 7 | WARN 0 | SKIP 10 | PASS 291 ]
  
  ══ Skipped tests (10) ══════════════════════════════════════════════════════════
  • On CRAN (8): 'test-Compiled.R:3:3', 'test-Compiled.R:34:3',
    'test-Compiled.R:46:3', 'test-Compiled.R:61:3', 'test-Compiled.R:76:3',
    'test-Compiled.R:84:3', 'test-tally_coverage.R:2:3', 'test-utils.R:46:3'
  • getRversion() >= "4.0.0" is TRUE (1): 'test-utils.R:37:3'
  • is_r_devel() is TRUE (1): 'test-R6.R:6:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-braceless.R:65:3'): switch with default value ────────────────
  length(zero_coverage(code_coverage(f, "f(\"a\"); f(\"b\"); f(\"c\")"))$line) not equal to 1.
  1/1 mismatches
  [1] 0 - 1 == -1
  ── Failure ('test-braceless.R:68:3'): switch with default value ────────────────
  length(zero_coverage(code_coverage(f, "f(\"a\"); f(\"c\")"))$line) not equal to 2.
  1/1 mismatches
  [1] 1 - 2 == -1
  ── Failure ('test-braceless.R:84:3'): switch with drop through ─────────────────
  res$first_line not equal to c(2, 4, 5, 6).
  Lengths differ: 3 is not 4
  ── Failure ('test-braceless.R:85:3'): switch with drop through ─────────────────
  res$value not equal to c(3, 2, 1, 0).
  Lengths differ: 3 is not 4
  ── Failure ('test-null.R:21:3'): coverage of functions with NULL constructs ────
  percent_coverage(cv2) not equal to 100.
  1/1 mismatches
  [1] NaN - 100 == NaN
  ── Failure ('test-null.R:23:3'): coverage of functions with NULL constructs ────
  percent_coverage(cv3) not equal to 50.
  1/1 mismatches
  [1] 100 - 50 == 50
  ── Failure ('test-null.R:25:3'): coverage of functions with NULL constructs ────
  percent_coverage(cv4) not equal to 50.
  1/1 mismatches
  [1] 100 - 50 == 50
  
  [ FAIL 7 | WARN 0 | SKIP 10 | PASS 291 ]
  Error: Test failures
  Execution halted