MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / failure

Method failure

atomic-agent/src/transcript/generator.rs:428–432  ·  view source on GitHub ↗

Create a mock that returns an error.

(message: &str)

Source from the content-addressed store, hash-verified

426
427 /// Create a mock that returns an error.
428 pub fn failure(message: &str) -> Self {
429 Self {
430 result: Err(message.to_string()),
431 }
432 }
433}
434
435#[cfg(test)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected