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

Function bootstrapping_then_ready

nodedb-cluster/src/lifecycle_state.rs:210–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208
209 #[test]
210 fn bootstrapping_then_ready() {
211 let t = ClusterLifecycleTracker::new();
212 t.to_bootstrapping();
213 assert_eq!(t.current(), ClusterLifecycleState::Bootstrapping);
214 t.to_ready(1);
215 assert!(t.is_ready());
216 }
217
218 #[test]
219 fn restarting_path() {

Callers

nothing calls this directly

Calls 2

to_bootstrappingMethod · 0.80
to_readyMethod · 0.80

Tested by

no test coverage detected