indicator_testing_indicator_lifecycle_test
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
CONTRACT TESTS: Testing indicator lifecycle — remove/re-add pattern.
Source File: /addons/grid_building/test/rules/indicators/indicator_testing_indicator_lifecycle_test.gd
Extends: GdUnitTestSuite
Private Properties
- Property:
_test_env: [AllSystemsTestEnvironment](./all-systems-test-environment/)(private) - Property:
_service: [IndicatorService](./indicator-service/)(private) - Property:
_indicators_parent: Node2D(private)
Public Methods
before_test
| |
after_test
| |
test_testing_indicator_cached_but_not_in_tree_after_setup
| |
CONTRACT: After setup_indicators(), the testing indicator must be cached but NOT in the scene tree. If it remains in the tree, it appears as a visible green indicator with zero rules.
test_testing_indicator_reused_and_removed_across_multiple_setups
| |
CONTRACT: When setup_indicators is called twice, the same testing indicator instance must be reused, re-added to the tree during setup, then removed again after setup completes.
test_zero_real_indicators_leaves_no_visible_indicators_in_tree
| |
CONTRACT: When setup_indicators produces zero real indicators (e.g., mask mismatch), the testing indicator must NOT be the only node left in the scene tree.
test_testing_indicator_freed_on_service_predelete
| |
CONTRACT: NOTIFICATION_PREDELETE must free the cached testing indicator. This is the safety net that prevents stray nodes when the scene changes and reset() was not explicitly called.
Private Methods
_setup_test_environment
| |
Flags: private
_create_indicators_parent
| |
Flags: private
_cleanup_test_environment
| |
Flags: private
_create_test_service
| |
Flags: private
_create_preview_with_collision_shapes
| |
Flags: private
_create_valid_tile_check_rules
| |
Flags: private
Grid Building v5.0.8 | Generated 24/05/2026