Running ‘testthat.R’ [16s/87s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(muttest)
  
  Attaching package: 'muttest'
  
  The following object is masked from 'package:testthat':
  
      default_reporter
  
  > 
  > test_check("muttest")
  Saving _problems/test-mutator-return-8.R
  Saving _problems/test-mutator-return-13.R
  Saving _problems/test-mutator-return-22.R
  Saving _problems/test-mutator-return-31.R
  Saving _problems/test-mutator-return-37.R
  Saving _problems/test-mutator-return-46.R
  Saving _problems/test-mutator-return-53.R
  Saving _problems/test-mutator-return-58.R
  Saving _problems/test-mutator-return-87.R
  Saving _problems/test-mutator-return-92.R
  Saving _problems/test-mutator-return-103.R
  Saving _problems/test-mutator-return-108.R
  Saving _problems/test-mutator-return-117.R
  Saving _problems/test-mutator-return-122.R
  [ FAIL 14 | WARN 0 | SKIP 13 | PASS 220 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • On CRAN (6): 'test-muttest.R:9:3', 'test-muttest.R:51:5',
    'test-parallel.R:2:3', 'test-test_reporter-progress.R:1:1',
    'test-test_reporter-progress.R:17:1', 'test-test_reporter-progress.R:33:1'
  • TODO: Currently matches on !!!. (2): 'test-mutator-condition.R:137:5',
    'test-mutator-unary.R:55:5'
  • TODO: Currently matches on !!. (2): 'test-mutator-condition.R:133:5',
    'test-mutator-unary.R:51:5'
  • TODO: Implement implicit return mutation. (2): 'test-mutator-return.R:64:5',
    'test-mutator-return.R:70:5'
  • covr::in_covr() is not TRUE (1): 'test-acceptance.R:2:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-mutator-return.R:4:5'): replace_return_value default (NULL) / should replace the return value with NULL ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_mutates_to(mutator, c("return(x)"), list(c("return(NULL)"))) at test-mutator-return.R:4:5
   2.   └─mutator$mutate(input) at ./setup-expect.R:2:3
   3.     └─muttest:::mutate_code(code, self)
   4.       └─treesitter::query(language, mutator$query)
   5.         └─treesitter:::query_error(pointer, source)
   6.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:13:5'): replace_return_value default (NULL) / should not mutate return(NULL) when replacement is NULL ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_no_mutations(mutator, c("return(NULL)")) at test-mutator-return.R:13:5
   2.   ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
   3.   │ └─testthat::quasi_label(enquo(object), label)
   4.   │   └─rlang::eval_bare(expr, quo_get_env(quo))
   5.   └─mutator$mutate(input)
   6.     └─muttest:::mutate_code(code, self)
   7.       └─treesitter::query(language, mutator$query)
   8.         └─treesitter:::query_error(pointer, source)
   9.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:18:5'): replace_return_value default (NULL) / should replace a complex return expression ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_mutates_to(mutator, c("return(x + 1)"), list(c("return(NULL)"))) at test-mutator-return.R:18:5
   2.   └─mutator$mutate(input) at ./setup-expect.R:2:3
   3.     └─muttest:::mutate_code(code, self)
   4.       └─treesitter::query(language, mutator$query)
   5.         └─treesitter:::query_error(pointer, source)
   6.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:27:5'): replace_return_value default (NULL) / should replace a nested call return expression ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_mutates_to(...) at test-mutator-return.R:27:5
   2.   └─mutator$mutate(input) at ./setup-expect.R:2:3
   3.     └─muttest:::mutate_code(code, self)
   4.       └─treesitter::query(language, mutator$query)
   5.         └─treesitter:::query_error(pointer, source)
   6.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:37:5'): replace_return_value default (NULL) / should generate one mutation per return call ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─mutator$mutate(code) at test-mutator-return.R:37:5
   2.   └─muttest:::mutate_code(code, self)
   3.     └─treesitter::query(language, mutator$query)
   4.       └─treesitter:::query_error(pointer, source)
   5.         └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:46:5'): replace_return_value default (NULL) / should work across multiple lines ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─mutator$mutate(code) at test-mutator-return.R:46:5
   2.   └─muttest:::mutate_code(code, self)
   3.     └─treesitter::query(language, mutator$query)
   4.       └─treesitter:::query_error(pointer, source)
   5.         └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:53:5'): replace_return_value default (NULL) / should return NULL when no return() calls are present ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_no_mutations(mutator, c("x + 1")) at test-mutator-return.R:53:5
   2.   ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
   3.   │ └─testthat::quasi_label(enquo(object), label)
   4.   │   └─rlang::eval_bare(expr, quo_get_env(quo))
   5.   └─mutator$mutate(input)
   6.     └─muttest:::mutate_code(code, self)
   7.       └─treesitter::query(language, mutator$query)
   8.         └─treesitter:::query_error(pointer, source)
   9.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:58:5'): replace_return_value default (NULL) / should not match return() with no argument ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_no_mutations(mutator, c("return()")) at test-mutator-return.R:58:5
   2.   ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
   3.   │ └─testthat::quasi_label(enquo(object), label)
   4.   │   └─rlang::eval_bare(expr, quo_get_env(quo))
   5.   └─mutator$mutate(input)
   6.     └─muttest:::mutate_code(code, self)
   7.       └─treesitter::query(language, mutator$query)
   8.         └─treesitter:::query_error(pointer, source)
   9.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:83:5'): replace_return_value with NA replacement / should replace the return value with NA ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_mutates_to(mutator, c("return(x)"), list(c("return(NA)"))) at test-mutator-return.R:83:5
   2.   └─mutator$mutate(input) at ./setup-expect.R:2:3
   3.     └─muttest:::mutate_code(code, self)
   4.       └─treesitter::query(language, mutator$query)
   5.         └─treesitter:::query_error(pointer, source)
   6.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:92:5'): replace_return_value with NA replacement / should not mutate return(NA) when replacement is NA ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_no_mutations(mutator, c("return(NA)")) at test-mutator-return.R:92:5
   2.   ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
   3.   │ └─testthat::quasi_label(enquo(object), label)
   4.   │   └─rlang::eval_bare(expr, quo_get_env(quo))
   5.   └─mutator$mutate(input)
   6.     └─muttest:::mutate_code(code, self)
   7.       └─treesitter::query(language, mutator$query)
   8.         └─treesitter:::query_error(pointer, source)
   9.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:99:5'): replace_return_value with string replacements / should insert the string "NULL" when replacement is '"NULL"' ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_mutates_to(mutator, c("return(x)"), list(c("return(\"NULL\")"))) at test-mutator-return.R:99:5
   2.   └─mutator$mutate(input) at ./setup-expect.R:2:3
   3.     └─muttest:::mutate_code(code, self)
   4.       └─treesitter::query(language, mutator$query)
   5.         └─treesitter:::query_error(pointer, source)
   6.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:108:5'): replace_return_value with string replacements / should not mutate return("NULL") when replacement is '"NULL"' ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_no_mutations(mutator, c("return(\"NULL\")")) at test-mutator-return.R:108:5
   2.   ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
   3.   │ └─testthat::quasi_label(enquo(object), label)
   4.   │   └─rlang::eval_bare(expr, quo_get_env(quo))
   5.   └─mutator$mutate(input)
   6.     └─muttest:::mutate_code(code, self)
   7.       └─treesitter::query(language, mutator$query)
   8.         └─treesitter:::query_error(pointer, source)
   9.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:113:5'): replace_return_value with string replacements / should insert the string "NA" when replacement is '"NA"' ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_mutates_to(mutator, c("return(x)"), list(c("return(\"NA\")"))) at test-mutator-return.R:113:5
   2.   └─mutator$mutate(input) at ./setup-expect.R:2:3
   3.     └─muttest:::mutate_code(code, self)
   4.       └─treesitter::query(language, mutator$query)
   5.         └─treesitter:::query_error(pointer, source)
   6.           └─rlang::abort(message, call = call)
  ── Error ('test-mutator-return.R:122:5'): replace_return_value with string replacements / should not mutate return("NA") when replacement is '"NA"' ──
  Error in `treesitter::query(language, mutator$query)`: Can't initialize this query.
  i Node type error at offset 18 in `source`.
  
  ```
  (call function: (<HERE>return) arguments: (arguments (argument value: (_) @value)))
  ```
  Backtrace:
      ▆
   1. └─muttest:::expect_no_mutations(mutator, c("return(\"NA\")")) at test-mutator-return.R:122:5
   2.   ├─testthat::expect_null(mutator$mutate(input)) at ./setup-expect.R:7:3
   3.   │ └─testthat::quasi_label(enquo(object), label)
   4.   │   └─rlang::eval_bare(expr, quo_get_env(quo))
   5.   └─mutator$mutate(input)
   6.     └─muttest:::mutate_code(code, self)
   7.       └─treesitter::query(language, mutator$query)
   8.         └─treesitter:::query_error(pointer, source)
   9.           └─rlang::abort(message, call = call)
  
  [ FAIL 14 | WARN 0 | SKIP 13 | PASS 220 ]
  Error:
  ! Test failures.
  Execution halted