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

Function no_orphans

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

Source from the content-addressed store, hash-verified

300
301 #[test]
302 fn no_orphans() {
303 let f = Fixtures::copy("simple");
304 let repo_id = RepoId::wiki();
305 let child = f.topic(repo_id, "00002");
306
307 let result = UpdateTopicParentTopics {
308 actor: actor(),
309 repo_id,
310 topic_id: child.topic_id(),
311 parent_topic_ids: &[],
312 }
313 .call(f.mutation(), &redis::Noop);
314
315 assert!(matches!(result, Err(Error::Repo(_))));
316 }
317
318 #[test]
319 fn no_cycles() {

Callers

nothing calls this directly

Calls 5

actorFunction · 0.85
topicMethod · 0.45
callMethod · 0.45
topic_idMethod · 0.45
mutationMethod · 0.45

Tested by

no test coverage detected