indicator_rule_assignment_simple_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Simplified test for RuleCheckIndicator rule assignment regression Tests the core functionality of rule assignment, bidirectional relationships, and validation without complex scene setup dependencies

Source File: /addons/grid_building/test/rules/assignment/indicator_rule_assignment_simple_test.gd

Extends: GdUnitTestSuite

Properties

  • Property: env: [AllSystemsTestEnvironment](./all-systems-test-environment/)
  • Property: runner: GdUnitSceneRunner

Constants

  • Constant: GBTestConstants := preload("res://addons/grid_building/test/scenes/env/gb_test_constants.gd")

Public Methods

before

1
before() -> void

before_test

1
before_test() -> void

after_test

1
after_test() -> void

after

1
after() -> void

assert_indicator_rule_relationship

1
2
3
4
assert_indicator_rule_relationship(
    indicator: RuleCheckIndicator,
    rule: TileCheckRule
) -> void

test_indicator_rule_assignment_via_factory

1
test_indicator_rule_assignment_via_factory() -> void

Test that rules are properly assigned to indicators during creation


test_add_rule_bidirectional_relationship

1
test_add_rule_bidirectional_relationship() -> void

Test that add_rule() properly establishes bidirectional relationship


test_rules_array_is_private

1
test_rules_array_is_private() -> void

Test that direct assignment to rules is no longer possible


test_indicator_rule_validation

1
test_indicator_rule_validation() -> void

Test that indicators validate rules correctly when rules are added


test_factory_uses_add_rule_method

1
test_factory_uses_add_rule_method() -> void

Test that IndicatorFactory uses proper rule assignment method


test_clear_rules

1
test_clear_rules() -> void

Test rule clearing functionality


Private Methods

_create_test_collision_rule

1
_create_test_collision_rule() -> CollisionsCheckRule

Flags: private


_create_test_parent_node

1
_create_test_parent_node() -> Node2D

Flags: private



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