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

Function empty_synonyms_dropped

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

Source from the content-addressed store, hash-verified

569
570 #[test]
571 fn empty_synonyms_dropped() {
572 let f = Fixtures::copy("simple");
573 let repo_id = RepoId::wiki();
574 let topic_id = parse_id("00001");
575
576 let UpdateTopicSynonymsResult { repo_topic, .. } = UpdateTopicSynonyms {
577 actor: actor(),
578 repo_id,
579 topic_id,
580 synonyms: vec![synonym("A topic"), synonym(" ")],
581 }
582 .call(f.mutation(), &redis::Noop)
583 .unwrap();
584
585 let synonyms = repo_topic.synonyms();
586 assert_eq!(synonyms.len(), 1);
587
588 assert_eq!(synonyms[0].name, "A topic");
589 }
590
591 #[test]
592 fn error_if_no_synonyms() {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected