git-next/crates/forge/src/mock_forge.rs

24 lines
448 B
Rust
Raw Normal View History

//
#![cfg(not(tarpaulin_include))]
use git_next_git as git;
struct MockForge;
#[derive(Clone, Debug)]
pub struct MockForgeEnv;
impl MockForgeEnv {
pub(crate) const fn new() -> Self {
Self
}
}
#[async_trait::async_trait]
2024-05-23 16:50:36 +01:00
impl git::ForgeLike for MockForgeEnv {
fn name(&self) -> String {
"mock".to_string()
}
async fn commit_status(&self, _commit: &git::Commit) -> git::commit::Status {
todo!()
}
}