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

Function test_trunk_already_exists

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

Source from the content-addressed store, hash-verified

805
806 #[test]
807 fn test_trunk_already_exists() {
808 let trunk_id = TrunkId::new(NodeId::new(1), 0);
809 let err = ApplyError::trunk_already_exists(trunk_id);
810 assert!(err.is_already_exists());
811 assert!(!err.is_not_found());
812 assert!(err.to_string().contains("already exists"));
813 }
814
815 #[test]
816 fn test_branch_already_exists() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected