tilemap_bounds_rule_unit_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Unit tests for WithinTilemapBoundsRule to reproduce template_rule_pass failure Reproduces issue from building_and_placement_tests where WithinTilemapBoundsRule fails even when position is within bounds

Source File: /addons/grid_building/test/rules/validation/tilemap_bounds_rule_unit_test.gd

Extends: GdUnitTestSuite

Private Properties

  • Property: _logger: [GBLogger](./gb-logger/) (private)

Public Methods

before_test

1
before_test() -> void

test_preloaded_tilemap_has_valid_tile_data

1
test_preloaded_tilemap_has_valid_tile_data() -> void

test_preloaded_tilemap_matches_integration_test_setup

1
test_preloaded_tilemap_matches_integration_test_setup() -> void

test_within_tilemap_bounds_rule_at_valid_position

1
test_within_tilemap_bounds_rule_at_valid_position() -> void

test_within_tilemap_bounds_rule_at_invalid_position

1
test_within_tilemap_bounds_rule_at_invalid_position() -> void

test_multiple_rules_validation_combination

1
test_multiple_rules_validation_combination() -> void

Private Methods

_create_test_indicator

1
_create_test_indicator() -> RuleCheckIndicator

Flags: private

Creates a RuleCheckIndicator with a 1x1 rectangle shape.


_create_test_rule_setup

1
_create_test_rule_setup() -> Dictionary

Flags: private


_generate_bounds_rule_diagnostics

1
2
3
4
5
6
7
_generate_bounds_rule_diagnostics(
    rule: WithinTilemapBoundsRule,
    indicator: RuleCheckIndicator,
    tile_map: TileMapLayer,
    positioner: Node2D,
    target: Node2D
) -> String

Flags: private


_generate_multiple_rules_diagnostics

1
2
3
4
5
_generate_multiple_rules_diagnostics(
    bounds_rule: WithinTilemapBoundsRule,
    collision_rule: CollisionsCheckRule,
    indicator: RuleCheckIndicator
) -> String

Flags: private



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