diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-12 01:22:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-16 01:02:47 +0900 |
| commit | e588920985c71eaa652a292db2dd1d75b73712e4 (patch) | |
| tree | 983b8c49c4d628e966c32a3a1cfd5b2cad03bc29 /crates/shirabe/tests/common | |
| parent | 754c41c474194a00ed34190ba228ac36dac609a5 (diff) | |
| download | php-shirabe-e588920985c71eaa652a292db2dd1d75b73712e4.tar.gz php-shirabe-e588920985c71eaa652a292db2dd1d75b73712e4.tar.zst php-shirabe-e588920985c71eaa652a292db2dd1d75b73712e4.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/common')
| -rw-r--r-- | crates/shirabe/tests/common/test_case.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::cell::RefCell<dyn IOInterface>> { /// 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::cell::RefCell<dyn IOInterface>>, ) -> std::rc::Rc<std::cell::RefCell<InstallationManager>> { let config = std::rc::Rc::new(std::cell::RefCell::new(Config::new(false, None))); |
