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

Method test

backend/src/git/search.rs:241–257  ·  view source on GitHub ↗
(&self, object: &RepoObject)

Source from the content-addressed store, hash-verified

239 }
240
241 fn test(&self, object: &RepoObject) -> bool {
242 if self.impossible_result {
243 return false;
244 }
245
246 if self.ids.is_empty() {
247 return true;
248 }
249
250 if let RepoObject::Link(link) = object {
251 if self.ids.contains(link.id()) {
252 return true;
253 }
254 }
255
256 false
257 }
258}
259
260struct Filter {

Callers 3

UpsertTopicAlertFunction · 0.80
isExternal.tsFile · 0.80
fetch_matchesMethod · 0.80

Calls 4

containsMethod · 0.80
is_emptyMethod · 0.45
idMethod · 0.45
topic_idMethod · 0.45

Tested by

no test coverage detected