mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-09 03:20:56 +00:00
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:
parent
ca56c15f2f
commit
827bd72af2
1 changed files with 4 additions and 0 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue