Skip to main content

SmokeTester

Trait SmokeTester 

Source
pub trait SmokeTester {
    // Required method
    fn test(&self, binary_path: &Path) -> Result<(), UpgradeError>;
}
Expand description

Trait for smoke-testing a binary. Implementations run the new binary and check that it starts correctly.

Required Methods§

Source

fn test(&self, binary_path: &Path) -> Result<(), UpgradeError>

Run a smoke test on the binary at the given path. Returns Ok(()) if the binary works, Err with reason on failure.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§