GitNexus/gitnexus/test
Mick Cooney ec0fe2e1cc fix(r): refuse renames past block-local definitions and $methods() calls
The local-definition guard now also reads the braces of block scopes
(local, test_that, describe, it, with, within; bare or pkg::). A call of
the name before a block-local function literal, or a literal assigned only
under if, refuses the rename: R calls the outer function there, but the
index binds the call to the block-local literal, so the rename left that
call behind. A nested function or block is judged by its own body, so a
stub defined first inside it() under describe() is still accepted.

A x$methods(...) call whose arguments mention the name refuses the rename
too: methods added to a RefClass generator that way are not modelled, so a
bare call inside one was rewritten although R reaches the class method.

Also pin that a function-local rebinding shadows a module-level
constructor type in a file that no <<- rebinds (r-receiver-agreement m10).

Four rename fixtures (57 per test file); gaps rows R-43 and R-44.
2026-10-25 12:04:36 +00:00
..
fixtures fix(r): refuse renames past block-local definitions and $methods() calls 2026-10-25 12:04:36 +00:00
helpers fix(r): refuse renames past block-local definitions and $methods() calls 2026-10-25 12:04:36 +00:00
integration fix(r): refuse renames past block-local definitions and $methods() calls 2026-10-25 12:04:36 +00:00
unit test(r): split the R rename fixtures across two files and run eleven platform shards 2026-10-25 11:13:05 +00:00
utils feat(storage): add configurable index storage and content retention tiers (#3060) 2026-09-12 20:31:55 +00:00