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

Function test_invalid_trunk_state

atomic-core/src/crdt/apply/error.rs:838–844  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

836
837 #[test]
838 fn test_invalid_trunk_state() {
839 let trunk_id = TrunkId::new(NodeId::new(1), 0);
840 let err = ApplyError::invalid_trunk_state(trunk_id, "deleted", "delete");
841 assert!(err.is_invalid_state());
842 assert!(err.to_string().contains("deleted"));
843 assert!(err.to_string().contains("delete"));
844 }
845
846 #[test]
847 fn test_invalid_branch_state() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected