it is now possible to run cargo miri

This commit is contained in:
2024-05-14 15:34:40 +02:00
parent 8001938507
commit 791c7f6e02
4 changed files with 75 additions and 4 deletions
+2
View File
@@ -947,6 +947,7 @@ mod tests {
}
#[test]
#[cfg_attr(miri, ignore)]
fn test_datetime_now() {
let now = chrono::Utc::now();
let cuc_now = CucTime::now(FractionalResolution::SixtyNs, LEAP_SECONDS);
@@ -1278,6 +1279,7 @@ mod tests {
}
#[test]
#[cfg_attr(miri, ignore)]
fn set_fract_resolution() {
let mut stamp = CucTime::new(2000);
stamp.set_fractional_resolution(FractionalResolution::SixtyNs);