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

Function parent_topics

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

Source from the content-addressed store, hash-verified

1569
1570 #[test]
1571 fn parent_topics() {
1572 let topic1 = topic("Climate change");
1573 let change = change(
1574 &topic1,
1575 Some(Timerange {
1576 starts: date().into(),
1577 prefix_format: TimerangePrefixFormat::StartYear,
1578 }),
1579 );
1580
1581 if let Change::RemoveTopicTimerange(RemoveTopicTimerange { parent_topics, .. }) = change
1582 {
1583 assert!(!parent_topics.is_empty());
1584 } else {
1585 unreachable!("expected RemoveTopicTimerange");
1586 }
1587 }
1588 }
1589
1590 mod upsert_link {

Callers

nothing calls this directly

Calls 3

topicFunction · 0.85
changeFunction · 0.85
dateFunction · 0.85

Tested by

no test coverage detected