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
| |
before_test
| |
after
| |
after_test
| |
create_test_object
| |
Helper: Create a fresh test object with manipulatable component
test_source_deletion_cancels_manipulation
| |
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
| |
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
| |
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