indicator_rule_binding_contract_test
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
CONTRACT TESTS: Rule-to-indicator binding through the full pipeline.
Source File: /addons/grid_building/test/rules/indicators/indicator_rule_binding_contract_test.gd
Extends: GdUnitTestSuite
Properties
- Property:
runner: GdUnitSceneRunner - Property:
env: [CollisionTestEnvironment](./collision-test-environment/)
Private Properties
- Property:
_targeting_state: [GridTargetingState](./grid-targeting-state/)(private) - Property:
_indicator_template: PackedScene(private)
Constants
- Constant:
DEFAULT_TILE_SIZE := Vector2i(16, 16) - Constant:
COLLISION_LAYER_DEFAULT := 1
Public Methods
before
| |
after
| |
test_execute_indicator_setup_attaches_rules_to_indicators
| |
CONTRACT: When collision layer and rule mask match, rules MUST be attached to every generated indicator. This is the happy path for the pipeline.
test_execute_indicator_setup_mismatched_mask_produces_ruleless_indicators
| |
CONTRACT: Mask mismatch produces indicators with ZERO rules. This documents the “green indicator” behavior and ensures it is intentional, not a regression.
Private Methods
_create_indicator_parent
| |
Flags: private
_create_test_object
| |
Flags: private
Grid Building v5.0.8 | Generated 24/05/2026