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

Function viewer

backend/tests/git/mod.rs:11–20  ·  view source on GitHub ↗
(repo_ids: &RepoIds)

Source from the content-addressed store, hash-verified

9mod topic;
10
11fn viewer(repo_ids: &RepoIds) -> Arc<Viewer> {
12 Arc::new(Viewer {
13 context_repo_id: RepoId::wiki(),
14 read_repo_ids: repo_ids.to_owned(),
15 session_id: Some("2".into()),
16 super_user: true,
17 user_id: "2".into(),
18 write_repo_ids: repo_ids.to_owned(),
19 })
20}
21
22fn actor() -> Arc<Viewer> {
23 let repos = RepoIds::from(&vec![RepoId::wiki(), RepoId::other()]);

Callers 2

actorFunction · 0.70
fetch_statsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected