From 827bd72af2338598bb0eb8d440320a59ad9ea513 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Thu, 23 Apr 2026 21:03:29 -0400 Subject: [PATCH] refactor(workflow): gate RunServices builder helpers to tests Co-Authored-By: Claude Opus 4.7 (1M context) --- lib/crates/fabro-workflow/src/services.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/crates/fabro-workflow/src/services.rs b/lib/crates/fabro-workflow/src/services.rs index 1751212ad..01323418a 100644 --- a/lib/crates/fabro-workflow/src/services.rs +++ b/lib/crates/fabro-workflow/src/services.rs @@ -112,6 +112,7 @@ impl RunServices { ) } + #[cfg(test)] #[must_use] pub fn with_run_store(self: &Arc, run_store: RunStoreHandle) -> Arc { Arc::new(Self { @@ -120,6 +121,7 @@ impl RunServices { }) } + #[cfg(test)] #[must_use] pub fn with_emitter(self: &Arc, emitter: Arc) -> Arc { Arc::new(Self { @@ -128,6 +130,7 @@ impl RunServices { }) } + #[cfg(test)] #[must_use] pub fn with_sandbox(self: &Arc, sandbox: Arc) -> Arc { Arc::new(Self { @@ -136,6 +139,7 @@ impl RunServices { }) } + #[cfg(test)] #[must_use] pub fn with_cancel_requested( self: &Arc,