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

Function test_trunk_op_create

atomic-core/src/crdt/trunk.rs:586–595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

584
585 #[test]
586 fn test_trunk_op_create() {
587 let op = TrunkOp::Create {
588 path: "README.md".to_string(),
589 encoding: Some(Encoding::Utf8),
590 };
591 assert!(op.is_create());
592 assert!(!op.is_delete());
593 assert!(op.trunk_id().is_none());
594 assert_eq!(op.op_type(), "create");
595 }
596
597 #[test]
598 fn test_trunk_op_delete() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected