()
| 92 | |
| 93 | #[test] |
| 94 | fn test_load_config_file_json() { |
| 95 | let temp_dir = TempDir::new().unwrap(); |
| 96 | let (json_path, _) = setup_test_files(&temp_dir); |
| 97 | |
| 98 | let figment = Figment::new(); |
| 99 | let result = load_config_file(&json_path, false, figment); |
| 100 | |
| 101 | assert_eq!( |
| 102 | result.extract_inner::<String>("test").unwrap(), |
| 103 | "json_value" |
| 104 | ); |
| 105 | } |
| 106 | |
| 107 | #[test] |
| 108 | fn test_load_config_file_toml() { |
nothing calls this directly
no test coverage detected