Add unit tests for existing commands

This commit is contained in:
Anthony Oteri
2023-09-26 16:09:52 -04:00
parent 292b44645a
commit a6cd95bfa4
4 changed files with 288 additions and 13 deletions
+6
View File
@@ -29,6 +29,9 @@ pub enum DredgeError {
/// An error building the registry URL
#[error("Error determining registry URL from {0}")]
RegistryUrlError(String),
#[error(transparent)]
IOError(#[from] std::io::Error),
}
/// An error related to the communication with the registry API.
@@ -56,6 +59,9 @@ pub enum ApiError {
#[error("Resource not found")]
NotFound,
#[error(transparent)]
IOError(#[from] std::io::Error),
}
impl From<reqwest::header::ToStrError> for ApiError {