(error: &BitFunError, path: Option<&str>)
| 54 | } |
| 55 | |
| 56 | fn is_expected_config_path_not_found(error: &BitFunError, path: Option<&str>) -> bool { |
| 57 | match (error, path) { |
| 58 | (BitFunError::NotFound(message), Some(path)) => { |
| 59 | message == &format!("Config path '{}' not found", path) |
| 60 | } |
| 61 | _ => false, |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | #[tauri::command] |
| 66 | pub async fn get_config( |
no outgoing calls
no test coverage detected