godot_test_factory_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Source File: /addons/grid_building/test/factories/godot_test_factory_test.gd

Extends: GdUnitTestSuite

Properties

  • Property: test_container: [GBCompositionContainer](./gb-composition-container/)

Private Properties

  • Property: _injector : [GBInjectorSystem](./gb-injector-system/) (private)

Constants

  • Constant: DEFAULT_RECT_SIZE: Vector2 = Vector2(32, 32) # API changed from extents to size (double the old values)
  • Constant: CUSTOM_RECT_EXTENTS: Vector2 = Vector2(10, 20) # Input extents parameter to factory
  • Constant: CUSTOM_RECT_SIZE: Vector2 = Vector2(20, 40) # Expected size output (extents * 2)
  • Constant: DEFAULT_CIRCLE_RADIUS: float = 25.0
  • Constant: EXPECTED_TILEMAP_SIZE: Vector2 = Vector2(31, 31)
  • Constant: DEFAULT_COLLISION_LAYER: int = 2049 # Layer 1 + Layer 12 (Targetable)
  • Constant: TRIANGLE_VERTEX_COUNT: int = 3
  • Constant: RECTANGLE_VERTEX_COUNT: int = 4
  • Constant: EXPECTED_PARENT_CHILDREN: int = 1 # Factory appears to create 1 child, not 2
  • Constant: SHAPE_TEST_SIZE: Vector2 = Vector2(50, 60)
  • Constant: INDICATOR_SIZE: Vector2 = Vector2(32, 32)

Public Methods

before_test

1
before_test() -> void

test_create_node2d

1
test_create_node2d() -> void

test_create_node

1
test_create_node() -> void

test_create_canvas_item

1
test_create_canvas_item() -> void

test_create_tile_map_layer_with_grid

1
test_create_tile_map_layer_with_grid() -> void

test_create_empty_tile_map_layer

1
test_create_empty_tile_map_layer() -> void

test_create_manipulatable

1
test_create_manipulatable() -> void

test_create_manipulatable_with_collision_default

1
test_create_manipulatable_with_collision_default() -> void

test_create_manipulatable_with_collision_custom

1
test_create_manipulatable_with_collision_custom() -> void

test_create_static_body_with_rect_shape_default

1
test_create_static_body_with_rect_shape_default() -> void

test_create_static_body_with_rect_shape_custom

1
test_create_static_body_with_rect_shape_custom() -> void

test_create_area2d_with_circle_shape

1
test_create_area2d_with_circle_shape() -> void

test_create_collision_polygon_default

1
test_create_collision_polygon_default() -> void

test_create_collision_polygon_custom

1
test_create_collision_polygon_custom() -> void

test_create_object_with_circle_shape

1
test_create_object_with_circle_shape() -> void

test_create_parent_with_body_and_polygon

1
test_create_parent_with_body_and_polygon() -> void

test_create_rectangle_shape

1
test_create_rectangle_shape() -> void

test_create_circle_shape

1
test_create_circle_shape() -> void

test_create_rule_check_indicator

1
test_create_rule_check_indicator() -> void

Private Methods

_assert_static_body_valid

1
2
3
4
_assert_static_body_valid(
    body: StaticBody2D,
    context: String
) -> void

Flags: private


_assert_area2d_valid

1
2
3
4
_assert_area2d_valid(
    area: Area2D,
    context: String
) -> void

Flags: private


_get_rect_shape_from_body

1
_get_rect_shape_from_body(body: StaticBody2D) -> RectangleShape2D

Flags: private


_get_circle_shape_from_body

1
_get_circle_shape_from_body(body: StaticBody2D) -> CircleShape2D

Flags: private


_get_circle_shape_from_area

1
_get_circle_shape_from_area(area: Area2D) -> CircleShape2D

Flags: private


_calculate_polygon_bounds

1
_calculate_polygon_bounds(polygon: PackedVector2Array) -> Rect2

Flags: private


_calculate_polygon_area

1
_calculate_polygon_area(polygon: PackedVector2Array) -> float

Flags: private



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