libcnb-test 0.29.0

An integration testing framework for buildpacks written with libcnb.rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fmt::Display;

/// Log output from a command.
#[derive(Debug, Default)]
pub struct LogOutput {
    pub stdout: String,
    pub stderr: String,
}

impl Display for LogOutput {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        let LogOutput { stdout, stderr } = self;
        write!(f, "## stderr:\n\n{stderr}\n## stdout:\n\n{stdout}\n")
    }
}