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

Function error_if_no_synonyms

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

Source from the content-addressed store, hash-verified

590
591 #[test]
592 fn error_if_no_synonyms() {
593 let f = Fixtures::copy("simple");
594 let repo_id = RepoId::wiki();
595 let topic_id = parse_id("00001");
596
597 let result = UpdateTopicSynonyms {
598 actor: actor(),
599 repo_id,
600 topic_id,
601 synonyms: vec![synonym(""), synonym(" ")],
602 }
603 .call(f.mutation(), &redis::Noop);
604
605 assert!(result.is_err());
606 }
607}
608
609#[cfg(test)]

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