use crate::server::{ actors::repo::RepoActor, config::{BranchName, GitDir, RepoConfig}, gitforge::{self, RepoCloneError, Repository}, types::{GitRef, MessageToken}, }; struct MockForge; #[derive(Clone, Debug)] pub struct MockForgeEnv; impl MockForgeEnv { pub(crate) const fn new() -> Self { Self } } #[async_trait::async_trait] impl super::ForgeLike for MockForgeEnv { fn name(&self) -> String { "mock".to_string() } async fn branches_get_all(&self) -> Result, gitforge::ForgeBranchError> { todo!() } async fn file_contents_get( &self, _branch: &BranchName, _file_path: &str, ) -> Result { todo!() } async fn branches_validate_positions( &self, _repository: Repository, _repo_config: RepoConfig, _addr: actix::prelude::Addr, _message_token: MessageToken, ) { todo!() } fn branch_reset( &self, _repository: &Repository, _branch_name: BranchName, _to_commit: GitRef, _force: gitforge::Force, ) -> gitforge::BranchResetResult { todo!() } async fn commit_status(&self, _commit: &gitforge::Commit) -> gitforge::CommitStatus { todo!() } fn repo_clone(&self, _gitdir: GitDir) -> Result { todo!() } }