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

1
before() -> void

after

1
after() -> void

test_execute_indicator_setup_attaches_rules_to_indicators

1
test_execute_indicator_setup_attaches_rules_to_indicators() -> void

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

1
test_execute_indicator_setup_mismatched_mask_produces_ruleless_indicators() -> void

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

1
_create_indicator_parent(p_name: String = "IndicatorParent") -> Node2D

Flags: private


_create_test_object

1
2
3
4
5
_create_test_object(
    position: Vector2,
    shape_size: Vector2,
    collision_layer: int
) -> StaticBody2D

Flags: private



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