MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / FakeProvider

Class FakeProvider

nodedb-cluster/src/cluster_info.rs:212–212  ·  view source on GitHub ↗

Fake provider that returns a canned list — lets us test the snapshot builder end-to-end without spinning up a real `MultiRaft`.

Source from the content-addressed store, hash-verified

210 /// snapshot builder end-to-end without spinning up a real
211 /// `MultiRaft`.
212 struct FakeProvider(Vec<GroupStatus>);
213 impl GroupStatusProvider for FakeProvider {
214 fn group_statuses(&self) -> Vec<GroupStatus> {
215 self.0.clone()

Callers 1

make_observerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected