Skip to main content

dealer/
messages.rs

1use crate::error::DealerError;
2
3pub(crate) fn not_implemented(feature: &str) -> String {
4    DealerError::NotImplemented {
5        feature: feature.to_string(),
6    }
7    .to_string()
8}
9
10pub(crate) fn check_passed() -> &'static str {
11    "Xtazy project check passed"
12}
13
14#[cfg(test)]
15mod tests {
16    use super::*;
17
18    #[test]
19    fn not_implemented_is_consistent() {
20        assert_eq!(
21            not_implemented("self update"),
22            "self update is recognized but not implemented yet"
23        );
24    }
25}