chore: add GUT test framework

This commit is contained in:
xiaji
2026-05-29 09:16:10 +08:00
parent 5741ba1dc0
commit 07fc763413
808 changed files with 76903 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
extends GutInternalTester
var GutControl = load('res://addons/gut/gui/GutControl.tscn')
func test_free_no_orphans():
var gc = GutControl.instantiate()
gc.free()
assert_no_new_orphans()
func test_in_tree_free_no_orphans():
var gc = GutControl.instantiate()
add_child(gc)
gc.free()
assert_no_new_orphans()