Add unit test for server

This commit is contained in:
2022-09-23 04:29:05 +00:00
committed by GitHub
parent 2bd7bcef6f
commit 970a4ec731
10 changed files with 119 additions and 7 deletions

View File

@@ -23,6 +23,8 @@ pub enum PixivDownloaderError {
FromUtf8Error(std::string::FromUtf8Error),
#[cfg(feature = "server")]
ToStrError(http::header::ToStrError),
#[cfg(all(feature = "server", feature = "db_sqlite", test))]
JSONError(json::Error),
}
impl From<&str> for PixivDownloaderError {