Running ‘testthat.R’ [9s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(coro)
  > 
  > test_check("coro")
  Saving _problems/test-parser-155.R
  Saving _problems/test-parser-244.R
  Saving _problems/test-parser-248.R
  Saving _problems/test-parser-259.R
  Saving _problems/test-parser-283.R
  Saving _problems/test-parser-294.R
  [ FAIL 6 | WARN 16 | SKIP 6 | PASS 230 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • On CRAN (6): 'test-async.R:25:1', 'test-generator.R:25:1',
    'test-generator.R:31:1', 'test-generator.R:320:3', 'test-iterator.R:3:3',
    'test-iterator.R:31:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-parser.R:143:3'): generators support if-else branches ──────────
  Error in `grDevices::pdf(new, ...)`: cannot open file '/tmp/RtmpsB6GSZ/verify_exec_39fb8110d85574'
  Backtrace:
      ▆
   1. └─coro:::expect_snapshot0(...) at test-parser.R:143:3
   2.   ├─rlang::inject(expect_snapshot(!!enquo0(expr), cran = cran)) at ./helper-flowery.R:3:3
   3.   └─testthat::expect_snapshot(...)
   4.     └─testthat:::expect_snapshot_(...)
   5.       ├─testthat:::with_is_snapshotting(...)
   6.       └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   7.         └─withr::local_pdf(device_path)
   8.           └─grDevices::pdf(new, ...)
  ── Error ('test-parser.R:234:3'): next and break within two layers of if-else ──
  Error in `file("", "w+b")`: cannot open the connection
  Backtrace:
       ▆
    1. └─coro:::expect_snapshot0(...) at test-parser.R:234:3
    2.   ├─rlang::inject(expect_snapshot(!!enquo0(expr), cran = cran)) at ./helper-flowery.R:3:3
    3.   └─testthat::expect_snapshot(...)
    4.     └─testthat:::expect_snapshot_(...)
    5.       ├─testthat:::with_is_snapshotting(...)
    6.       └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    7.         └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
    8.           └─evaluate:::watchout(...)
    9.             └─evaluate:::local_persistent_sink_connection(debug, frame)
   10.               └─base::file("", "w+b")
  ── Error ('test-parser.R:248:3'): handle for loops ─────────────────────────────
  Error in `file("", "w+b")`: cannot open the connection
  Backtrace:
       ▆
    1. └─coro:::expect_snapshot0(generator_body(function() for (x in 1:3) yield(x))) at test-parser.R:248:3
    2.   ├─rlang::inject(expect_snapshot(!!enquo0(expr), cran = cran)) at ./helper-flowery.R:3:3
    3.   └─testthat::expect_snapshot(...)
    4.     └─testthat:::expect_snapshot_(...)
    5.       ├─testthat:::with_is_snapshotting(...)
    6.       └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    7.         └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
    8.           └─evaluate:::watchout(...)
    9.             └─evaluate:::local_persistent_sink_connection(debug, frame)
   10.               └─base::file("", "w+b")
  ── Error ('test-parser.R:259:3'): handle yield-assign ──────────────────────────
  Error in `file("", "w+b")`: cannot open the connection
  Backtrace:
       ▆
    1. └─coro:::expect_snapshot0(generator_body(function(x) x <- yield(x))) at test-parser.R:259:3
    2.   ├─rlang::inject(expect_snapshot(!!enquo0(expr), cran = cran)) at ./helper-flowery.R:3:3
    3.   └─testthat::expect_snapshot(...)
    4.     └─testthat:::expect_snapshot_(...)
    5.       ├─testthat:::with_is_snapshotting(...)
    6.       └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    7.         └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
    8.           └─evaluate:::watchout(...)
    9.             └─evaluate:::local_persistent_sink_connection(debug, frame)
   10.               └─base::file("", "w+b")
  ── Error ('test-parser.R:283:3'): tryCatch() expressions are treated as normal expressions if possible ──
  Error in `file("", "w+b")`: cannot open the connection
  Backtrace:
       ▆
    1. └─coro:::expect_snapshot0(generator_body(function() tryCatch(foo()))) at test-parser.R:283:3
    2.   ├─rlang::inject(expect_snapshot(!!enquo0(expr), cran = cran)) at ./helper-flowery.R:3:3
    3.   └─testthat::expect_snapshot(...)
    4.     └─testthat:::expect_snapshot_(...)
    5.       ├─testthat:::with_is_snapshotting(...)
    6.       └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
    7.         └─evaluate::evaluate(source, envir = env, new_device = FALSE, output_handler = handler)
    8.           └─evaluate:::watchout(...)
    9.             └─evaluate:::local_persistent_sink_connection(debug, frame)
   10.               └─base::file("", "w+b")
  ── Error ('test-parser.R:287:3'): tryCatch() expressions are parsed ────────────
  Error in `grDevices::pdf(new, ...)`: cannot open file '/tmp/RtmpsB6GSZ/verify_exec_39fb81138ccb72'
  Backtrace:
      ▆
   1. └─coro:::expect_snapshot0(...) at test-parser.R:287:3
   2.   ├─rlang::inject(expect_snapshot(!!enquo0(expr), cran = cran)) at ./helper-flowery.R:3:3
   3.   └─testthat::expect_snapshot(...)
   4.     └─testthat:::expect_snapshot_(...)
   5.       ├─testthat:::with_is_snapshotting(...)
   6.       └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   7.         └─withr::local_pdf(device_path)
   8.           └─grDevices::pdf(new, ...)
  
  [ FAIL 6 | WARN 16 | SKIP 6 | PASS 230 ]
  Error:
  ! Test failures.
  Execution halted