From 4b92ecafd7634ad99aa432d58fbc1958d1f01270 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 05:17:53 +0900 Subject: test: port remaining repository and util tests as stubs All ignored: Composer/Filesystem/Platform/Vcs repositories and the AuthHelper/Bitbucket/Git/Perforce/RemoteFilesystem/Svn utils mock IO/Config/HttpDownloader(curl)/ProcessExecutor or use reflection; Filesystem/ProcessExecutor/StreamContextFactory/ProxyManager need on-disk fixtures or proxy env. setUp/tearDown not ported. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/composer_test.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/tests/composer_test.rs') diff --git a/crates/shirabe/tests/composer_test.rs b/crates/shirabe/tests/composer_test.rs index bd417e9..75a554c 100644 --- a/crates/shirabe/tests/composer_test.rs +++ b/crates/shirabe/tests/composer_test.rs @@ -14,8 +14,8 @@ use shirabe::json::JsonFile; use shirabe::package::{Locker, RootPackageHandle, RootPackageInterfaceHandle}; use shirabe::repository::RepositoryManager; use shirabe::util::http_downloader::HttpDownloader; -use shirabe::util::process_executor::ProcessExecutor; use shirabe::util::r#loop::Loop; +use shirabe::util::process_executor::ProcessExecutor; fn null_io() -> Rc> { Rc::new(RefCell::new(NullIO::new())) @@ -43,9 +43,12 @@ fn installation_manager(io: &Rc>) -> Rc