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

Function another_repo

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

Source from the content-addressed store, hash-verified

832 // #[test]
833 #[allow(dead_code)]
834 fn another_repo() {
835 let f = Fixtures::copy("simple");
836 let other_repo = RepoId::try_from("/other/").unwrap();
837 let parent_path = parse_id("00001");
838
839 let result = f
840 .upsert_topic(
841 other_repo,
842 "Topic name",
843 &parent_path,
844 OnMatchingSynonym::Ask,
845 )
846 .unwrap();
847 let topic = result.repo_topic.unwrap();
848 let topic_id = topic.topic_id();
849
850 assert!(f.git.exists(other_repo, topic_id).unwrap());
851 }
852}
853
854#[cfg(test)]

Callers

nothing calls this directly

Calls 3

parse_idFunction · 0.85
upsert_topicMethod · 0.45
topic_idMethod · 0.45

Tested by

no test coverage detected