indicator_reconcile_unit_test
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Source File: /addons/grid_building/test/rules/indicators/indicator_reconcile_unit_test.gd
Extends: GdUnitTestSuite
Private Properties
- Property:
__service: [IndicatorService](./indicator-service/)(private) - Property:
__parent: Node2D(private) - Property:
__env: Node(private)
Public Methods
before_test
| |
test_reconcile_reuses_existing_indicator_and_updates_rules
| |
test_reconcile_with_empty_new_rules_clears_existing_rules
| |
CONTRACT TEST: When a new indicator has zero rules, the reused existing indicator also ends up with zero rules. This documents the “green indicator” behavior that occurs when rules are lost (e.g., layer mask mismatch, stale mapper state, or position_rules_map not containing the rule).
test_reconcile_transfers_all_rules_from_new_to_existing
| |
CONTRACT TEST: Reconcile must transfer ALL rules from new indicator to reused existing indicator. Catches bugs where only partial rule transfer occurs.
after_test
| |
Private Methods
_create_env_and_service
| |
Flags: private
Grid Building v5.0.8 | Generated 24/05/2026