Files
jpmschweitzerandClaude Opus 4.6 61e0762a84 chore(client): add gdUnit4 test framework addon
Vendor gdUnit4 for Godot 4 client testing (D-030).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 16:52:00 +01:00

31 lines
504 B
GDScript

class_name CustomNodeTestClass
extends Node
const STATIC_FUNC_RETURN_VALUE = "i'm a static function"
enum {
ENUM_A,
ENUM_B
}
#func get_path() -> NodePath:
# return NodePath()
#func duplicate(flags_=15) -> Node:
# return self
# added a custom static func for mock testing
static func static_test() -> String:
return STATIC_FUNC_RETURN_VALUE
static func static_test_void() -> void:
pass
func get_value( type := ENUM_A) -> int:
match type:
ENUM_A:
return 0
ENUM_B:
return 1
return -1