MCPcopy Create free account
hub / github.com/Open-Quant/openquant / invalid_config_rejected

Function invalid_config_rejected

crates/openquant/tests/hpc_parallel.rs:118–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117#[test]
118fn 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}

Callers

nothing calls this directly

Calls 1

run_parallelFunction · 0.85

Tested by

no test coverage detected