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

Function link_deleted

backend/tests/git/link.rs:21–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20 #[test]
21 fn link_deleted() {
22 let f = Fixtures::copy("simple");
23
24 let link = link(&f, "Page title", "00001");
25 let link_id = link.id();
26 let repo_id = RepoId::wiki();
27 assert!(f.git.exists(repo_id, link_id).unwrap());
28
29 DeleteLink {
30 actor: actor(),
31 repo_id,
32 link_id: link_id.clone(),
33 }
34 .call(f.mutation(), &redis::Noop)
35 .unwrap();
36
37 assert!(!f.git.exists(repo_id, link_id).unwrap());
38 }
39
40 #[test]
41 fn activity_log_updated() {

Callers

nothing calls this directly

Calls 5

actorFunction · 0.85
linkFunction · 0.70
idMethod · 0.45
callMethod · 0.45
mutationMethod · 0.45

Tested by

no test coverage detected