MCPcopy Index your code
hub / github.com/emwalker/digraph / topic_deleted

Function topic_deleted

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

Source from the content-addressed store, hash-verified

49
50 #[test]
51 fn topic_deleted() {
52 let f = Fixtures::copy("simple");
53 let repo_id = RepoId::wiki();
54 let topic_id = parse_id("00001");
55 assert!(f.git.exists(repo_id, &topic_id).unwrap());
56
57 let DeleteTopicResult {
58 deleted_topic_id, ..
59 } = DeleteTopic {
60 actor: actor(),
61 repo_id,
62 topic_id: topic_id.to_owned(),
63 }
64 .call(f.mutation(), &redis::Noop)
65 .unwrap();
66
67 assert_eq!(topic_id, deleted_topic_id);
68 assert!(!f.git.exists(repo_id, &topic_id).unwrap());
69 }
70
71 #[test]
72 fn parent_topics_updated() {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected