• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wildjames / predictive_coding_rs / 22819940947

08 Mar 2026 11:14AM UTC coverage: 87.11%. Remained the same
22819940947

Pull #9

github

web-flow
Merge 27ab4fcf4 into 15dfb054d
Pull Request #9: Split training utils out into validation and configuration files

277 of 298 new or added lines in 5 files covered. (92.95%)

4 existing lines in 1 file now uncovered.

1257 of 1443 relevant lines covered (87.11%)

9.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/src/utils/mod.rs
1
use std::path::Path;
2

3
use crate::error::{
4
  PredictiveCodingError,
5
  Result
6
};
7
pub mod logging;
8

9
pub fn timestamp() -> String {
4✔
10
  chrono::Utc::now().format("%Y-%m-%dT%H:%M:%S").to_string()
4✔
11
}
4✔
12

13

14
pub fn ensure_parent_dir(filename: &str) -> Result<()> {
20✔
15
  if let Some(parent) = Path::new(filename).parent() && !parent.as_os_str().is_empty() {
20✔
16
      std::fs::create_dir_all(parent)
20✔
17
        .map_err(|source| PredictiveCodingError::io("create directory", parent, source))?;
20✔
NEW
18
    }
×
19

20
  Ok(())
20✔
21
}
20✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc