Kit · K01: gpui from gpui-pre =0.3.8, Kit's pin; test-support keeps leak detection

This commit is contained in:
ZacharyZhang-NY committed 2026-10-07 12:27:17 -04:00
1 parent 083ef85696
commit c61a5b22b0
8 files changed
+391 -238

No files matched your search

+11
View File
@@ -85,3 +85,14 @@ fn setup(cx: &mut App) {
terminal::bind_keys(cx);
documents::bind_keys(cx);
}
#[cfg(all(test, feature = "test-support"))]
mod tests {
use gpui::{AppContext, TestAppContext};
#[gpui::test]
#[should_panic(expected = "leaked handles")]
fn a_leaked_entity_fails_its_test(cx: &mut TestAppContext) {
std::mem::forget(cx.new(|_| ()));
}
}