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

Function parent_topics_updated

backend/tests/git/topic.rs:72–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71 #[test]
72 fn parent_topics_updated() {
73 let f = Fixtures::copy("simple");
74 let repo_id = RepoId::wiki();
75 let path = parse_id("00001");
76 let root = ExternalId::root_topic();
77 let parent = f.git.fetch_topic(repo_id, &root).unwrap();
78 assert!(parent.has_child(&path));
79
80 DeleteTopic {
81 actor: actor(),
82 repo_id,
83 topic_id: path.clone(),
84 }
85 .call(f.mutation(), &redis::Noop)
86 .unwrap();
87
88 let parent = f.git.fetch_topic(repo_id, &root).unwrap();
89 assert!(!parent.has_child(&path));
90 }
91
92 #[test]
93 fn children_added_to_parents() {

Callers

nothing calls this directly

Calls 5

parse_idFunction · 0.85
actorFunction · 0.85
fetch_topicMethod · 0.45
callMethod · 0.45
mutationMethod · 0.45

Tested by

no test coverage detected