Skip to main content

semver_common/mock/
mock_commit.rs

1pub mod commit {
2    use crate::Commit;
3    use chrono::DateTime;
4
5    pub fn create(message: &str) -> Commit {
6        Commit::new(
7            "12345678",
8            "John Doe",
9            DateTime::parse_from_str("Wed Apr 22 19:12:34 2026 -0400", "%a %b %d %H:%M:%S %Y %z")
10                .unwrap(),
11            message,
12        )
13    }
14}