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

Function invalid_user

backend/tests/git/repo.rs:57–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56 #[test]
57 fn invalid_user() {
58 let f = Fixtures::copy("simple");
59 let actor = actor();
60
61 let repo_id = RepoId::other();
62 git::core::Repo::ensure(&f.git.root, repo_id).unwrap();
63 let path = f.git.root.repo_path(repo_id);
64
65 assert!(path.exists());
66 assert_ne!(actor.user_id, "1");
67
68 let result = delete(&f, repo_id, &actor, "1");
69 assert!(result.is_err());
70 assert!(path.exists());
71 }
72
73 #[test]
74 fn wiki_repo() {

Callers

nothing calls this directly

Calls 4

actorFunction · 0.85
ensureFunction · 0.85
deleteFunction · 0.85
repo_pathMethod · 0.80

Tested by

no test coverage detected