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

Function parent_references

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

Source from the content-addressed store, hash-verified

1778
1779 #[test]
1780 fn parent_references() {
1781 // Show the change in the activity log for any parent topics, even though the parent
1782 // topics aren't being updated with the change.
1783 let topic1 = topic("Climate change");
1784 let change = change(&topic1, TimerangePrefixFormat::None);
1785
1786 if let Change::UpsertTopicTimerange(UpsertTopicTimerange { parent_topics, .. }) = change
1787 {
1788 assert!(!parent_topics.is_empty());
1789 } else {
1790 unreachable!("expected UpsertTopicTimerange");
1791 }
1792 }
1793 }
1794}

Callers

nothing calls this directly

Calls 2

topicFunction · 0.85
changeFunction · 0.85

Tested by

no test coverage detected