canic-cli 0.69.4

Operator CLI for Canic fleet setup, builds, evidence, catalog, backup, and restore workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Module: backup::tests::fixtures::stamp
//!
//! Responsibility: convert backup directory stamps for backup tests.
//! Does not own: production path stamping or backup-list timestamp formatting.
//! Boundary: test helper for expected `unix:` marker values.

use crate::support::path_stamp::backup_directory_stamp_to_unix;

pub(in crate::backup::tests) fn unix_marker_for_stamp(stamp: &str) -> String {
    format!(
        "unix:{}",
        backup_directory_stamp_to_unix(stamp).expect("valid backup directory stamp")
    )
}