use std::collections::HashMap;
use std::fs::File;
use std::io::Read;
use std::path::Path;
use serde_json;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_read_config() {
match read_config() {
Ok(config) => {
assert!(config.contains_key("apiURL"));
assert!(config.contains_key("apiKey"));
}
Err(e) => panic!("Test failed: {}", e),
}
}
}