MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / active

Method active

atomic-repository/tests/semantic_context_algebra.rs:109–116  ·  view source on GitHub ↗
(&self, id: Hash)

Source from the content-addressed store, hash-verified

107 }
108
109 fn active(&self, id: Hash) -> bool {
110 // A reverse can reference only an already declared immutable effect,
111 // so this effect-reference graph cannot contain a cycle.
112 !self.effects.iter().any(|(candidate, effect)| {
113 matches!(effect, Effect::Reverse { observed } if *observed == id)
114 && self.active(*candidate)
115 })
116 }
117
118 fn project(&self) -> Projection {
119 let mut projection = Projection::default();

Callers 1

projectMethod · 0.45

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected