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

Function test_path_already_exists

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

Source from the content-addressed store, hash-verified

828
829 #[test]
830 fn test_path_already_exists() {
831 let trunk_id = TrunkId::new(NodeId::new(1), 0);
832 let err = ApplyError::path_already_exists("src/main.rs", trunk_id);
833 assert!(err.is_already_exists());
834 assert!(err.to_string().contains("src/main.rs"));
835 }
836
837 #[test]
838 fn test_invalid_trunk_state() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected