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

Function updated_title

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

Source from the content-addressed store, hash-verified

1616
1617 #[test]
1618 fn updated_title() {
1619 let topic1 = topic("Climate change");
1620 let link = link("Reddit", "https://www.reddit.com");
1621
1622 let change = Change::UpsertLink(UpsertLink {
1623 actor_id: "2".to_owned(),
1624 date: chrono::Utc::now(),
1625 id: Change::new_id(),
1626 parent_topics: BTreeSet::from([topic1.topic_id().to_owned()]),
1627 previous_title: Some("Redis".to_owned()),
1628 upserted_link: LinkInfo::from(&link),
1629 add_parent_topic: None,
1630 });
1631
1632 assert_eq!(
1633 change.markdown(Locale::EN, "Gnusto", None),
1634 format!(
1635 r#"Gnusto changed the title of [Redis](https://www.reddit.com) to "Reddit""#,
1636 ),
1637 );
1638 }
1639
1640 #[test]
1641 fn paths() {

Callers

nothing calls this directly

Calls 4

topicFunction · 0.85
linkFunction · 0.70
UpsertLinkClass · 0.70
topic_idMethod · 0.45

Tested by

no test coverage detected