()
| 116 | |
| 117 | #[test] |
| 118 | fn invalid_config_rejected() { |
| 119 | let atoms = vec![1, 2, 3]; |
| 120 | let err = run_parallel( |
| 121 | &atoms, |
| 122 | HpcParallelConfig { |
| 123 | mode: ExecutionMode::Threaded { num_threads: 0 }, |
| 124 | partition: PartitionStrategy::Linear, |
| 125 | mp_batches: 1, |
| 126 | progress_every: 1, |
| 127 | }, |
| 128 | |_chunk| Ok::<usize, &'static str>(1), |
| 129 | ) |
| 130 | .expect_err("invalid thread count"); |
| 131 | assert!(matches!(err, HpcParallelError::InvalidConfig(_))); |
| 132 | } |
nothing calls this directly
no test coverage detected