Running ‘testthat.R’ [3s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(jqr)
  > 
  > test_check("jqr")
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 123 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • empty test (1): 'test-dsl.R:52:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-dsl.R:206:3'): recurse ─────────────────────────────────────────
  Error: jq: error: recurse_down/0 is not defined at <top-level>, line 1:
  recurse_down
  Backtrace:
       ▆
    1. ├─testthat::expect_is("{\"a\":0, \"b\":[1]}" %>% recurse, "jqson") at test-dsl.R:206:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─"{\"a\":0, \"b\":[1]}" %>% recurse
    5.   ├─jqr (local) `<fn>`()
    6.   │ └─base::do.call("return", alist(.jq_exitfun(returnValue())), envir = env)
    7.   └─jqr (local) .jq_exitfun(returnValue())
    8.     ├─jqr::jq(j)
    9.     └─jqr:::jq.jqr(j)
   10.       ├─jqr:::jqr(x$data, make_query(x), flags = flags)
   11.       └─jqr:::jqr.default(x$data, make_query(x), flags = flags)
   12.         └─jqr::jqr_new(query, flags = flags)
  ── Failure ('test-spec.R:127:3'): NA handling ──────────────────────────────────
  `jq(NA_character_)` threw an error with unexpected message.
  Expected match: "!is.na\\(json\\) is not TRUE"
  Actual message: "jq: error: Top-level program not given (try \".\")"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(jq(NA_character_), "!is.na\\(json\\) is not TRUE") at test-spec.R:127:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─jqr::jq(NA_character_)
    7. └─jqr:::jq.character(NA_character_)
    8.   ├─base::structure(jqr(x, query, flags), class = c("jqson", "character"))
    9.   ├─jqr:::jqr(x, query, flags)
   10.   └─jqr:::jqr.default(x, query, flags)
   11.     └─jqr::jqr_new(query, flags = flags)
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 123 ]
  Error: Test failures
  Execution halted