opentofu/internal/refactoring
Martin Atkins ef5a1c9cfe refactoring: ImpliedMoveStatements function
This new function complements the existing function FindMoveStatements
by potentially generating additional "implied" move statements that aren't
written explicit in the configuration but that we'll infer by comparing
the configuration and te previous run state.

The goal here is to infer only enough to replicate the effect of the
"count boundary fixup" graph node (terraform.NodeCountBoundary) that we
currently use to deal with this concern of preserving the zero-instance
when switching between "count" and not "count".

This is just dead code for now. A subsequent commit will introduce this
into the "terraform" package while also removing
terraform.NodeCountBoundary, thus achieving the same effect as before but
in a way that'll get reported in the UI as a move, using the same language
that we'd use for an explicit move statement.
2021-09-20 09:06:22 -07:00
..
testdata refactoring: ImpliedMoveStatements function 2021-09-20 09:06:22 -07:00
move_execute_test.go fix ApplyMove test with nested modules working 2021-08-20 15:17:06 -04:00
move_execute.go core: Record move result information in the plan 2021-08-30 13:59:14 -07:00
move_statement_test.go refactoring: ImpliedMoveStatements function 2021-09-20 09:06:22 -07:00
move_statement.go refactoring: ImpliedMoveStatements function 2021-09-20 09:06:22 -07:00
move_validate_test.go refactoring: TestValidateMoves/cyclic_chain can now pass 2021-09-15 08:46:12 -07:00
move_validate.go refactoring: First round of ValidateMoves rules 2021-07-29 12:29:36 -07:00