TestDebugHelpers

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Source File: /addons/grid_building/test/integration/system_interactions/debug_helpers/test_debug_helpers.gd

Public Methods

create_minimal_test_environment

1
2
3
create_minimal_test_environment(
    test_suite: GdUnitTestSuite
) -> AllSystemsTestEnvironment

Flags: static

Debug helpers for placement manager tests to reduce duplication and improve debuggability Helper to create minimal test environment


create_indicator_manager_with_validation

1
2
3
4
create_indicator_manager_with_validation(
    test_suite: GdUnitTestSuite,
    env: AllSystemsTestEnvironment
) -> Dictionary

Flags: static

Helper to create and validate an indicator manager with proper error reporting


create_basic_collision_rule

1
create_basic_collision_rule(collision_layer: int = 1) -> CollisionsCheckRule

Flags: static

Helper to create a basic collision rule for testing


validate_indicator_setup

1
2
3
4
5
validate_indicator_setup(
    manager: IndicatorManager,
    test_object: Node2D,
    rules: Array[TileCheckRule]
) -> Dictionary

Flags: static

Helper to validate indicator setup with detailed reporting


validate_building_system_entry

1
2
3
4
5
validate_building_system_entry(
    test_suite: GdUnitTestSuite,
    env: AllSystemsTestEnvironment,
    placeable: Placeable
) -> Dictionary

Flags: static

Helper to verify building system can enter build mode


Private Methods

_setup_targeting_state_for_tests

1
2
3
4
_setup_targeting_state_for_tests(
    test_suite: GdUnitTestSuite,
    env: AllSystemsTestEnvironment
) -> void

Flags: static, private

Sets up the GridTargetingState with a default target for indicator tests


_create_setup_summary

1
_create_setup_summary(validation_result: Dictionary) -> String

Flags: static, private

Helper to create a diagnostic summary for debugging


_create_build_mode_summary

1
_create_build_mode_summary(validation_result: Dictionary) -> String

Flags: static, private

Helper to create build mode diagnostic summary



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