tile_check_rule_contract_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

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

Extends: GdUnitTestSuite

Public Methods

test_get_failing_indicators_empty_array_returns_pass

1
test_get_failing_indicators_empty_array_returns_pass() -> void

Contract tests for TileCheckRule behavior that must never regress. These verify the “nothing to test = pass by design” guard and related architectural contracts. CONTRACT TEST: Empty indicators array returns pass (empty failing array). When a preview has no collision shapes, IndicatorSetupUtils generates zero indicators. TileCheckRule.get_failing_indicators([]) must return [] (pass) because there is nothing to evaluate.


test_get_failing_indicators_with_indicators_evaluates_validation

1
test_get_failing_indicators_with_indicators_evaluates_validation() -> void

CONTRACT TEST: Non-empty indicators array evaluates validate_placement(). When indicators exist, the rule should actually run validate_placement() and return failing indicators if validation fails.



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