#![doc(html_no_source)]
#![allow(dead_code)]
use amfnbatchlib::ProcessBatch;
pub const TEST_FILE: &str = "testsets/test_batch_serialization.json";
#[test]
fn batch_serialization() {
let mut config_names: Vec<&str> = Vec::new();
config_names.push(TEST_FILE);
match ProcessBatch::process_batches(config_names) {
Err(e) => {
assert!(false, "{:?}", e);
}
Ok(o) => {
assert!(
o.failures() == 0,
"Total processing: Batches = {}, Successes = {}, Failures = {}",
o.batches(),
o.successes(),
o.failures()
);
}
}
}