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

Function restarting_path

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

Source from the content-addressed store, hash-verified

217
218 #[test]
219 fn restarting_path() {
220 let t = ClusterLifecycleTracker::new();
221 t.to_restarting();
222 assert_eq!(t.current(), ClusterLifecycleState::Restarting);
223 t.to_ready(3);
224 assert!(t.is_ready());
225 }
226
227 #[test]
228 fn failed_is_not_terminal_by_contract() {

Callers

nothing calls this directly

Calls 2

to_restartingMethod · 0.80
to_readyMethod · 0.80

Tested by

no test coverage detected