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

Function fail

atomic-repository/src/repository/synthesis.rs:585–592  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

583 use atomic_core::pristine::MutTxnT;
584
585 fn fail(name: &str) -> Result<(), RepositoryError> {
586 if std::env::var_os(name).is_some() {
587 return Err(RepositoryError::InvalidOperation {
588 message: format!("injected synthesis failpoint: {name}"),
589 });
590 }
591 Ok(())
592 }
593
594 /// Simulates a missing graph vertex: staged content retrieval fails.
595 pub fn vertex() -> Result<(), RepositoryError> {

Callers 5

manifestFunction · 0.85
vertexFunction · 0.85
deps_indexFunction · 0.85
recordFunction · 0.85
projectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected