pub struct ScriptedOutputSink { /* private fields */ }Expand description
In-memory scripted output sink fixture for SDK conformance tests. Use it to script deterministic behavior in memory; any transcript or endpoint mutation is documented on the method that performs it.
Implementations§
Source§impl ScriptedOutputSink
impl ScriptedOutputSink
Sourcepub fn new(
sink_ref: OutputSinkRef,
capabilities: OutputSinkCapabilities,
) -> Self
pub fn new( sink_ref: OutputSinkRef, capabilities: OutputSinkCapabilities, ) -> Self
Creates a new testing::output_delivery value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
§Panics
Panics if constructor invariants fail, such as invalid identifier
text or constructor-specific bounds. Use a fallible constructor such as
try_new when one is available for untrusted input.
Sourcepub fn push_receipt(&self, receipt: Result<OutputDeliveryReceipt, AgentError>)
pub fn push_receipt(&self, receipt: Result<OutputDeliveryReceipt, AgentError>)
Push receipt. This reads or mutates deterministic in-memory test state unless the method explicitly names a fixture file.
Sourcepub fn calls(&self) -> Vec<OutputDeliveryRequest>
pub fn calls(&self) -> Vec<OutputDeliveryRequest>
Operates on in-memory or journal-derived testing::output_delivery state for diagnostics and repair evidence. It does not create a second run loop or product workflow owner.
Trait Implementations§
Source§impl Clone for ScriptedOutputSink
impl Clone for ScriptedOutputSink
Source§fn clone(&self) -> ScriptedOutputSink
fn clone(&self) -> ScriptedOutputSink
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more