1
0
Fork 0
gobject-generator/Tests/SwiftGtkGenCoreTests
Brendan Szymanski 5abb48e889 Fix Phase D signal/callback remediation defects
Destroy-notify ABI fixed to GClosureNotify's real 2-arg signature and
wired into every connect method (was leaking every _ClosureBox, and
UB on non-x86_64 with the wrong arg count). Trampolines restore
MainActor isolation via assumeIsolated, with narrowly-scoped
nonisolated(unsafe) shadow copies to satisfy Swift 6's sending
checker. Interface-signal rendering implemented and unit-tested.
Dead code removed (SignalHandlePlan), destroyTrampoline made
non-optional, D7 deferral documented in-code. CoverageStats gained
boundCallbacks/boundSignals counters. Added SignalGenerationTests,
InterfaceSignalGenerationTests, and CallbackGenerationTests (12 new
tests, 187/187 total). Fixed the dead nonDetailedSignal smoke test to
actually mutate a property and assert the closure fired.

Callback-param planner-side binding (D4.3) stays disabled: enabling
it trips a genuine Swift compiler crash on g_qsort_with_data's
GCompareDataFunc parameter. The renderer-side box setup/release logic
is implemented and unit-tested by constructing plans directly,
bypassing the blocked planner path.

Verified: swift test (187/187), compile-gate.sh 1 --fresh (PASS),
smoke-test.sh --fresh (18/18).
2026-07-18 20:45:56 -04:00
..
AnalysisTests.swift Complete override application in analyzer 2026-07-01 13:37:50 -04:00
CallbackGenerationTests.swift Fix Phase D signal/callback remediation defects 2026-07-18 20:45:56 -04:00
ConfigFileTests.swift Add Config.toml mapping from TOML dict + GIR namespace 2026-07-01 13:31:06 -04:00
ConfigTests.swift Initial commit: SwiftGtkGen GIR-to-Swift binding generator 2026-07-01 03:27:41 -04:00
FunctionGenerationTests.swift Complete filename/naming remediation with PascalCase convention 2026-07-17 22:48:16 -04:00
InterfaceConformanceTests.swift Phase C review remediation — C5 conformance, C6 GValue setter leak, C4 double-free/crossed-pair, C1 integer widths, renderConstructor throws, +24 unit tests +3 smoke tests 2026-07-18 16:28:33 -04:00
InterfaceGenerationTests.swift Generate boxed-record memory management and interface requirements 2026-07-17 21:04:37 -04:00
InterfaceSignalGenerationTests.swift Fix Phase D signal/callback remediation defects 2026-07-18 20:45:56 -04:00
IRModelTests.swift Rearchitect generator around binding-plan layer with function generation 2026-07-17 14:43:54 -04:00
MonorepoConfigTests.swift Update MonorepoConfig.from to use [packages.Name] section format, update tests 2026-07-01 20:55:16 -04:00
MultiPackageAnalysisTests.swift Add MultiPackageAnalyzer dependency resolution tests 2026-07-01 20:44:30 -04:00
NamingTests.swift Remove underscore prefix from generated filenames 2026-07-17 23:26:34 -04:00
ParserSemanticsTests.swift Rearchitect generator around binding-plan layer with function generation 2026-07-17 14:43:54 -04:00
ParserTests.swift Capture interface functions and record fields correctly in parser 2026-07-01 13:36:01 -04:00
PropertyGenerationTests.swift Phase C review remediation — C5 conformance, C6 GValue setter leak, C4 double-free/crossed-pair, C1 integer widths, renderConstructor throws, +24 unit tests +3 smoke tests 2026-07-18 16:28:33 -04:00
RecordGenerationTests.swift Phase C review remediation — C5 conformance, C6 GValue setter leak, C4 double-free/crossed-pair, C1 integer widths, renderConstructor throws, +24 unit tests +3 smoke tests 2026-07-18 16:28:33 -04:00
RendererCallableTests.swift Phase C review remediation — C5 conformance, C6 GValue setter leak, C4 double-free/crossed-pair, C1 integer widths, renderConstructor throws, +24 unit tests +3 smoke tests 2026-07-18 16:28:33 -04:00
ScaffoldingTests.swift Initial commit: SwiftGtkGen GIR-to-Swift binding generator 2026-07-01 03:27:41 -04:00
SignalGenerationTests.swift Fix Phase D signal/callback remediation defects 2026-07-18 20:45:56 -04:00
TOMLReaderTests.swift Guard against unclosed string crash in TOMLReader 2026-07-01 13:28:40 -04:00
TypeMapperTests.swift Phase C review remediation — C5 conformance, C6 GValue setter leak, C4 double-free/crossed-pair, C1 integer widths, renderConstructor throws, +24 unit tests +3 smoke tests 2026-07-18 16:28:33 -04:00
TypeRegistryTests.swift Rearchitect generator around binding-plan layer with function generation 2026-07-17 14:43:54 -04:00