diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 20:29:57 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 20:29:57 +0300 |
| commit | 0bab01573a781abda0ddf08046e7e4ce4568d696 (patch) | |
| tree | e3be41d834fab62d71cc8fa5b0f13f30260922e4 /src/app/creation.rs | |
| parent | 9a91a2ac41a5b2fbc2811922750a782b45115219 (diff) | |
refactor: route headless workspace tab mutations through runtime dispatch
Diffstat (limited to 'src/app/creation.rs')
| -rw-r--r-- | src/app/creation.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/creation.rs b/src/app/creation.rs index bdd1a43b..7131520e 100644 --- a/src/app/creation.rs +++ b/src/app/creation.rs @@ -1,6 +1,7 @@ use std::path::PathBuf; use crate::api::schema::{EventData, EventEnvelope, EventKind}; +#[cfg(test)] use tracing::error; use super::{ @@ -57,6 +58,7 @@ impl App { } /// Create a workspace with a real PTY (needs event_tx). + #[cfg(test)] pub(crate) fn create_workspace(&mut self) { let follow_cwd = self .workspace_creation_source() @@ -68,6 +70,7 @@ impl App { } } + #[cfg(test)] pub(crate) fn create_tab(&mut self) { let custom_name = self.state.requested_new_tab_name.take(); let active_before = self.state.active; @@ -109,6 +112,7 @@ impl App { } } + #[cfg(test)] pub(super) fn create_tab_with_options( &mut self, initial_cwd: PathBuf, @@ -154,6 +158,7 @@ impl App { self.create_workspace_with_launch_env(initial_cwd, focus, Vec::new()) } + #[cfg(test)] pub(crate) fn create_workspace_with_events( &mut self, initial_cwd: PathBuf, |
