Kit · K01: gpui from gpui-pre =0.3.8, Kit's pin; test-support keeps leak detection
This commit is contained in:
1 parent
083ef85696
commit
c61a5b22b0
8 files changed
+391
-238
No files matched your search
+11
@@ -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(|_| ()));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user