* using log directory ‘/Users/ripley/R/packages/tests-devel/muttest.Rcheck’ * using R Under development (unstable) (2026-06-19 r90183) * using platform: aarch64-apple-darwin25.5.0 * R was compiled by Apple clang version 21.0.0 (clang-2100.1.1.101) GNU Fortran (GCC) 14.2.0 * running under: macOS Tahoe 26.5.1 * using session charset: UTF-8 * current time: 2026-06-20 06:07:41 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘muttest/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘muttest’ version ‘0.2.0’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘muttest’ can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ ERROR 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: (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: (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: (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: (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: (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: (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: (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: (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: (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: (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: (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: (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: (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: (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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [9s/25s] OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/Users/ripley/R/packages/tests-devel/muttest.Rcheck/00check.log’ for details. 54.22 real 25.07 user 7.89 sys