manipulation_source_deletion_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Test: ManipulationSystem handles source object deletion gracefully Validates that manipulation auto-cancels when the source object is deleted mid-operation

Source File: /addons/grid_building/test/integration/system_interactions/manipulation_source_deletion_test.gd

Extends: GdUnitTestSuite

Properties

  • Property: runner: GdUnitSceneRunner
  • Property: test_env: Node
  • Property: manipulation_system: [ManipulationSystem](./manipulation-system/)
  • Property: container: [GBCompositionContainer](./gb-composition-container/)
  • Property: manipulation_state: [ManipulationState](./manipulation-state/)
  • Property: test_object: Node2D
  • Property: manipulatable: [Manipulatable](./manipulatable/)

Constants

  • Constant: ManipulationSystem = preload('res://addons/grid_building/systems/manipulation/manipulation_system.gd')

Public Methods

before

1
before() -> void

before_test

1
before_test() -> void

after

1
after() -> void

after_test

1
after_test() -> void

create_test_object

1
create_test_object() -> void

Helper: Create a fresh test object with manipulatable component


test_source_deletion_cancels_manipulation

1
test_source_deletion_cancels_manipulation() -> void

Test: Manipulation auto-cancels when source object is deleted Setup: Start move manipulation on a test object Act: Delete the source object while manipulation is active Assert: Manipulation is automatically canceled


test_multiple_source_deletions_handled_safely

1
test_multiple_source_deletions_handled_safely() -> void

Test: Multiple deletions don’t cause crashes Setup: Start manipulation and track initial state Act: Delete source multiple times (defensive test) Assert: No crashes, manipulation canceled cleanly


test_source_deletion_at_various_manipulation_phases

1
test_source_deletion_at_various_manipulation_phases() -> void

Test: Source deletion during different manipulation phases Setup: Track manipulation phases (started, in-progress) Act: Delete source at different times Assert: Always cancels cleanly without errors



Grid Building v5.0.8 | Generated 24/05/2026