aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/script/event_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 05:17:53 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 11:49:31 +0900
commit4b92ecafd7634ad99aa432d58fbc1958d1f01270 (patch)
tree7967e53dc0fa9be5ba525c2ec8ce6496aa559857 /crates/shirabe/tests/script/event_test.rs
parent3efcd8d338aa49efb0c9075c0f7a4dd4e4138b7d (diff)
downloadphp-shirabe-4b92ecafd7634ad99aa432d58fbc1958d1f01270.tar.gz
php-shirabe-4b92ecafd7634ad99aa432d58fbc1958d1f01270.tar.zst
php-shirabe-4b92ecafd7634ad99aa432d58fbc1958d1f01270.zip
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/script/event_test.rs')
-rw-r--r--crates/shirabe/tests/script/event_test.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/crates/shirabe/tests/script/event_test.rs b/crates/shirabe/tests/script/event_test.rs
index 424f553..e2aab3c 100644
--- a/crates/shirabe/tests/script/event_test.rs
+++ b/crates/shirabe/tests/script/event_test.rs
@@ -17,9 +17,12 @@ fn create_composer_instance() -> ComposerHandle {
ComposerHandle::from_rc_unchecked(Rc::new(RefCell::new(PartialOrFullComposer::new_full())));
let config = Rc::new(RefCell::new(Config::new(true, None)));
composer.borrow_mut().set_config(config);
- let package: RootPackageInterfaceHandle =
- RootPackageHandle::new("foo".to_string(), "1.0.0.0".to_string(), "1.0.0".to_string())
- .into();
+ let package: RootPackageInterfaceHandle = RootPackageHandle::new(
+ "foo".to_string(),
+ "1.0.0.0".to_string(),
+ "1.0.0".to_string(),
+ )
+ .into();
composer.borrow_mut().set_package(package);
composer
}
@@ -30,8 +33,7 @@ fn test_event_sets_originating_event() {
let io: Rc<RefCell<dyn IOInterface>> = Rc::new(RefCell::new(NullIO::new()));
let composer = create_composer_instance();
- let originating_event =
- BaseEvent::new("originatingEvent".to_string(), vec![], IndexMap::new());
+ let originating_event = BaseEvent::new("originatingEvent".to_string(), vec![], IndexMap::new());
let mut script_event = Event::new(
"test".to_string(),