(pct_embargo: f64)
| 466 | } |
| 467 | |
| 468 | fn validate_embargo(pct_embargo: f64) -> Result<(), String> { |
| 469 | if !(0.0..1.0).contains(&pct_embargo) { |
| 470 | return Err("pct_embargo must be in [0,1)".to_string()); |
| 471 | } |
| 472 | Ok(()) |
| 473 | } |
| 474 | |
| 475 | fn validate_cpcv_params(n_groups: usize, test_groups: usize) -> Result<(), String> { |
| 476 | if n_groups < 2 { |
no outgoing calls
no test coverage detected