refactor(workflow): gate RunServices builder helpers to tests

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-04-23 21:03:29 -04:00
parent ca56c15f2f
commit 827bd72af2
No known key found for this signature in database

View file

@ -112,6 +112,7 @@ impl RunServices {
)
}
#[cfg(test)]
#[must_use]
pub fn with_run_store(self: &Arc<Self>, run_store: RunStoreHandle) -> Arc<Self> {
Arc::new(Self {
@ -120,6 +121,7 @@ impl RunServices {
})
}
#[cfg(test)]
#[must_use]
pub fn with_emitter(self: &Arc<Self>, emitter: Arc<Emitter>) -> Arc<Self> {
Arc::new(Self {
@ -128,6 +130,7 @@ impl RunServices {
})
}
#[cfg(test)]
#[must_use]
pub fn with_sandbox(self: &Arc<Self>, sandbox: Arc<dyn Sandbox>) -> Arc<Self> {
Arc::new(Self {
@ -136,6 +139,7 @@ impl RunServices {
})
}
#[cfg(test)]
#[must_use]
pub fn with_cancel_requested(
self: &Arc<Self>,