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

Method find_topic

backend/tests/git/fixtures.rs:111–126  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

109 }
110
111 pub fn find_topic(&self, name: &str) -> Option<ExternalId> {
112 let FetchTopicLiveSearchResult {
113 synonyms: matches, ..
114 } = FetchTopicLiveSearch {
115 limit: 10,
116 repos: RepoIds::from(vec![RepoId::wiki()]),
117 search: Search::parse(name).unwrap(),
118 viewer: actor(),
119 }
120 .call(&self.git)
121 .unwrap();
122
123 let row = matches.iter().find(|row| row.name == name);
124
125 row.map(|m| m.id.to_owned())
126 }
127
128 fn write(&self) {
129 let options = dir::CopyOptions {

Callers 5

topic_searchFunction · 0.80
combined_searchFunction · 0.80
result_size_and_orderFunction · 0.80

Calls 4

parseFunction · 0.85
actorFunction · 0.85
callMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected