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

Function make_topic

backend/tests/git/topic.rs:144–159  ·  view source on GitHub ↗
(f: &Fixtures, parent: &ExternalId, name: &str)

Source from the content-addressed store, hash-verified

142 }
143
144 fn make_topic(f: &Fixtures, parent: &ExternalId, name: &str) -> RepoTopic {
145 let topic_id = parse_id("dPqrU4sZaPkNZEDyr9T68G4RJYV8bncmIXumedBNls9F994v8poSbxTo7dKK3Vhi");
146
147 let UpsertTopicResult { repo_topic, .. } = UpsertTopic {
148 actor: actor(),
149 locale: Locale::EN,
150 name: name.to_owned(),
151 repo_id: RepoId::wiki(),
152 on_matching_synonym: OnMatchingSynonym::Update(topic_id),
153 parent_topic_id: parent.to_owned(),
154 }
155 .call(f.mutation(), &redis::Noop)
156 .unwrap();
157
158 repo_topic.unwrap()
159 }
160
161 #[test]
162 fn change_entries_updated() {

Callers 1

change_entries_updatedFunction · 0.85

Calls 5

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

Tested by

no test coverage detected