()
| 120 | |
| 121 | #[test] |
| 122 | fn test_load_config_in_dir() { |
| 123 | let temp_dir = TempDir::new().unwrap(); |
| 124 | let dir_path = temp_dir.path().to_str().unwrap(); |
| 125 | |
| 126 | fs::write( |
| 127 | temp_dir.path().join("test.json"), |
| 128 | r#"{"key": "json_value"}"#, |
| 129 | ) |
| 130 | .unwrap(); |
| 131 | |
| 132 | let figment = Figment::new(); |
| 133 | let result = load_config_in_dir("test", dir_path, false, figment); |
| 134 | |
| 135 | assert_eq!(result.extract_inner::<String>("key").unwrap(), "json_value"); |
| 136 | } |
| 137 | |
| 138 | #[test] |
| 139 | fn test_search_load_config() { |
nothing calls this directly
no test coverage detected