ocelot-engine 0.1.2

Language pipeline orchestration for the ocelot project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use ocelot_base::shared_string::SharedString;

/// Failure details for one executed test item.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct FailedTestResult {
    pub name: SharedString,
    pub message: SharedString,
}

impl FailedTestResult {
    /// Creates a failed test result from its user-facing name and message.
    pub fn new(name: impl Into<SharedString>, message: impl Into<SharedString>) -> Self {
        Self {
            name: name.into(),
            message: message.into(),
        }
    }
}