collision_object_resolver_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Unit Tests for CollisionObjectResolver

Source File: /addons/grid_building/test/placement/unit/collision_object_resolver_test.gd

Extends: GdUnitTestSuite

Private Properties

  • Property: _resolver: [CollisionObjectResolver](./collision-object-resolver/) (private)

Public Methods

before_test

1
before_test() -> void

after_test

1
after_test() -> void

test_resolve_direct_collision_object

1
test_resolve_direct_collision_object() -> void

Test direct collision object resolution


test_resolve_collision_shape_with_parent

1
test_resolve_collision_shape_with_parent() -> void

Test collision shape with parent


test_resolve_collision_polygon_with_parent

1
test_resolve_collision_polygon_with_parent() -> void

Test collision polygon with parent


test_resolve_collision_shape_without_parent

1
test_resolve_collision_shape_without_parent() -> void

Test collision shape without parent (should fail)


test_resolve_collision_polygon_without_parent

1
test_resolve_collision_polygon_without_parent() -> void

Test collision polygon without parent (should fail)


test_resolve_unsupported_node

1
test_resolve_unsupported_node() -> void

Test unsupported node type (should fail)


test_resolve_null_node

1
test_resolve_null_node() -> void

Test null node (should fail)


test_resolve_collision_object_without_test_setup

1
test_resolve_collision_object_without_test_setup() -> void

Test collision object without test setup (should fail)


test_object_matches_layer_mask

1
test_object_matches_layer_mask() -> void

Test layer mask matching


Private Methods

_assert_valid_resolution

1
2
3
4
5
_assert_valid_resolution(
    result: CollisionObjectResolver.ResolutionResult,
    expected_obj: CollisionObject2D,
    expected_setup: CollisionTestSetup2D
) -> void

Flags: private

Assert a valid resolution result with expected collision object and test setup


_assert_invalid_resolution

1
2
3
4
_assert_invalid_resolution(
    result: CollisionObjectResolver.ResolutionResult,
    expected_error_substring: String
) -> void

Flags: private

Assert an invalid resolution result with expected error substring


_cleanup_test_data

1
_cleanup_test_data(test_data: CollisionResolutionTestData) -> void

Flags: private

Cleanup all objects in test data


_setup_direct_collision_object

1
_setup_direct_collision_object() -> CollisionResolutionTestData

Flags: private

Setup functions for test data


_setup_collision_shape_with_parent

1
_setup_collision_shape_with_parent() -> CollisionResolutionTestData

Flags: private


_setup_collision_polygon_with_parent

1
_setup_collision_polygon_with_parent() -> CollisionResolutionTestData

Flags: private


_setup_collision_shape_without_parent

1
_setup_collision_shape_without_parent() -> CollisionResolutionTestData

Flags: private


_setup_collision_polygon_without_parent

1
_setup_collision_polygon_without_parent() -> CollisionResolutionTestData

Flags: private


_setup_unsupported_node

1
_setup_unsupported_node() -> CollisionResolutionTestData

Flags: private


_setup_null_node

1
_setup_null_node() -> CollisionResolutionTestData

Flags: private


_setup_collision_object_without_test_setup

1
_setup_collision_object_without_test_setup() -> CollisionResolutionTestData

Flags: private



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