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

1
before_test() -> void

test_reconcile_reuses_existing_indicator_and_updates_rules

1
test_reconcile_reuses_existing_indicator_and_updates_rules() -> void

test_reconcile_with_empty_new_rules_clears_existing_rules

1
test_reconcile_with_empty_new_rules_clears_existing_rules() -> void

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

1
test_reconcile_transfers_all_rules_from_new_to_existing() -> void

CONTRACT TEST: Reconcile must transfer ALL rules from new indicator to reused existing indicator. Catches bugs where only partial rule transfer occurs.


after_test

1
after_test() -> void

Private Methods

_create_env_and_service

1
_create_env_and_service() -> Dictionary

Flags: private



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