MCPcopy Create free account
hub / github.com/emwalker/digraph / ensure

Function ensure

backend/tests/git/repo.rs:114–126  ·  view source on GitHub ↗
(
        f: &Fixtures,
        repo_ids: &Vec<RepoId>,
        actor: &Arc<Viewer>,
        user_id: &str,
    )

Source from the content-addressed store, hash-verified

112 use super::*;
113
114 fn ensure(
115 f: &Fixtures,
116 repo_ids: &Vec<RepoId>,
117 actor: &Arc<Viewer>,
118 user_id: &str,
119 ) -> Result<git::EnsurePersonalRepoResult> {
120 git::EnsurePersonalRepo {
121 actor: Arc::clone(actor),
122 user_id: user_id.to_owned(),
123 personal_repo_ids: repo_ids.to_owned(),
124 }
125 .call(f.mutation())
126 }
127
128 #[test]
129 fn root_topic_created() {

Callers 8

repoMethod · 0.85
viewMethod · 0.85
ensureMethod · 0.85
writeMethod · 0.85
repo_deletedFunction · 0.85
invalid_userFunction · 0.85
idempotencyFunction · 0.85
root_topic_createdFunction · 0.85

Calls 2

callMethod · 0.45
mutationMethod · 0.45

Tested by

no test coverage detected