Skip to main content

maybe_fail_commit

Function maybe_fail_commit 

Source
pub fn maybe_fail_commit() -> Result<(), InjectedFailure>
Expand description

No-op when injection is disabled.

ยงErrors

Always returns Ok(()) when the testing-statement-injection feature is off; the result type is kept so call sites compile uniformly.