From e588920985c71eaa652a292db2dd1d75b73712e4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 12 Jul 2026 01:22:13 +0900 Subject: refactor(locker-test): reuse test_case's installation_manager helper locker_test.rs defined its own installation_manager, identical to test_case.rs's (both build a bare InstallationManager over a mock HttpDownloader). Expose the shared one via pub(crate) and drop the duplicate. Co-Authored-By: Claude Sonnet 5 --- crates/shirabe/tests/common/test_case.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe/tests/common/test_case.rs') diff --git a/crates/shirabe/tests/common/test_case.rs b/crates/shirabe/tests/common/test_case.rs index 5bfc2d0f..4adee211 100644 --- a/crates/shirabe/tests/common/test_case.rs +++ b/crates/shirabe/tests/common/test_case.rs @@ -174,7 +174,7 @@ fn null_io() -> std::rc::Rc> { /// ref: FactoryMock::createInstallationManager (the real installers are never created in tests, so a /// bare InstallationManager over a mock HttpDownloader suffices). -fn installation_manager( +pub(crate) fn installation_manager( io: &std::rc::Rc>, ) -> std::rc::Rc> { let config = std::rc::Rc::new(std::cell::RefCell::new(Config::new(false, None))); -- cgit v1.3.1