aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-core/tests/git_driver_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-10 20:01:21 +0900
committernsfisis <nsfisis@gmail.com>2026-05-10 20:01:21 +0900
commit24bb31c109332ae982b7091ffcd5183442ce6f6f (patch)
treece590a34053bd48506310c0a0c26395605973d45 /crates/mozart-core/tests/git_driver_test.rs
parentdd13f29a3535bf15bb2494da4c67b5e2c61bbda5 (diff)
downloadphp-mozart-24bb31c109332ae982b7091ffcd5183442ce6f6f.tar.gz
php-mozart-24bb31c109332ae982b7091ffcd5183442ce6f6f.tar.zst
php-mozart-24bb31c109332ae982b7091ffcd5183442ce6f6f.zip
refactor(vcs): move VCS drivers under repository module
Mirror Composer's structure where VCS drivers live under Repository/Vcs/. Rename VcsDriver trait to VcsDriverInterface and BitbucketDriver to GitBitbucketDriver to match Composer naming, and add stubs for FossilDriver, PerforceDriver, and the VcsDriver base.
Diffstat (limited to 'crates/mozart-core/tests/git_driver_test.rs')
-rw-r--r--crates/mozart-core/tests/git_driver_test.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/mozart-core/tests/git_driver_test.rs b/crates/mozart-core/tests/git_driver_test.rs
index c0dd4af..0c1c344 100644
--- a/crates/mozart-core/tests/git_driver_test.rs
+++ b/crates/mozart-core/tests/git_driver_test.rs
@@ -1,6 +1,6 @@
+use mozart_core::repository::vcs::{DriverConfig, DriverType, create_driver, detect_driver};
use mozart_core::vcs::downloader::VcsDownloader;
use mozart_core::vcs::downloader::git::GitDownloader;
-use mozart_core::vcs::driver::{DriverConfig, DriverType, create_driver};
use mozart_core::vcs::process::ProcessExecutor;
use mozart_core::vcs::repository::VcsRepository;
use mozart_core::vcs::util::git::GitUtil;
@@ -250,8 +250,6 @@ fn test_git_downloader_unpushed_changes() {
#[test]
fn test_detect_driver() {
- use mozart_core::vcs::driver::{DriverType, detect_driver};
-
let config = DriverConfig::default();
assert_eq!(