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

Function test_file_ops_create

atomic-core/src/change/ops.rs:824–836  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

822
823 #[test]
824 fn test_file_ops_create() {
825 let ops = FileOps::create(
826 test_trunk_id(),
827 "test.txt".to_string(),
828 Some(Encoding::Utf8),
829 );
830
831 assert!(ops.is_create());
832 assert!(!ops.is_delete());
833 assert!(!ops.is_edit());
834 assert_eq!(ops.path(), "test.txt");
835 assert!(ops.has_operations());
836 }
837
838 #[test]
839 fn test_file_ops_delete() {

Callers

nothing calls this directly

Calls 1

test_trunk_idFunction · 0.70

Tested by

no test coverage detected