Skip to main content

publish_through

Function publish_through 

Source
pub fn publish_through(
    dir: &Path,
    stem: &str,
    outcome: &Result<EmittedDocument, Verdict>,
    write: &mut dyn FnMut(&mut dyn Write, &[u8]) -> Result<()>,
) -> Result<Published>
Expand description

publish, writing every file’s bytes through write — the seam a test uses to make a write fail half way.