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

Function synonym_added_date

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

Source from the content-addressed store, hash-verified

455
456 #[test]
457 fn synonym_added_date() {
458 let f = Fixtures::copy("simple");
459 let repo_id = RepoId::wiki();
460 let topic_id = parse_id("00001");
461
462 let topic = f.git.fetch_topic(repo_id, &topic_id).unwrap();
463 let syn = topic.synonyms().first().unwrap();
464 let added = syn.added;
465
466 UpdateTopicSynonyms {
467 actor: actor(),
468 repo_id,
469 topic_id: topic_id.clone(),
470 synonyms: vec![synonym(&syn.name)],
471 }
472 .call(f.mutation(), &redis::Noop)
473 .unwrap();
474
475 let topic = f.git.fetch_topic(repo_id, &topic_id).unwrap();
476 let syn = topic.synonyms().first().unwrap();
477 assert_eq!(syn.added, added);
478 }
479
480 #[test]
481 fn lookup_indexes_updated() {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected