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

Function removed

backend/src/git/activity.rs:1451–1475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1449
1450 #[test]
1451 fn removed() {
1452 let topic1 = topic("Climate change");
1453
1454 let change = Change::UpdateTopicSynonyms(UpdateTopicSynonyms {
1455 actor_id: "2".to_owned(),
1456 added_synonyms: SynonymList(BTreeMap::new()),
1457 date: chrono::Utc::now(),
1458 id: Change::new_id(),
1459 parent_topics: BTreeSet::new(),
1460 updated_topic: TopicInfo::from(&topic1),
1461 removed_synonyms: SynonymList(BTreeMap::from([(
1462 Locale::EN,
1463 "Removed synonym".to_owned(),
1464 )])),
1465 reordered: false,
1466 });
1467
1468 assert_eq!(
1469 change.markdown(Locale::EN, "Gnusto", None),
1470 format!(
1471 "Gnusto removed \"Removed synonym\" from [Climate change]({})",
1472 topic1.relative_url(),
1473 ),
1474 );
1475 }
1476
1477 #[test]
1478 fn reordered() {

Callers

nothing calls this directly

Calls 3

topicFunction · 0.85
UpdateTopicSynonymsClass · 0.70
SynonymListClass · 0.70

Tested by

no test coverage detected