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

Function test_file_ops_create

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

Source from the content-addressed store, hash-verified

1378
1379 #[test]
1380 fn test_file_ops_create() {
1381 let ops = FileOps::create(
1382 test_trunk_id(),
1383 "test.txt".to_string(),
1384 Some(Encoding::Utf8),
1385 );
1386
1387 assert!(ops.is_create());
1388 assert!(!ops.is_delete());
1389 assert!(!ops.is_edit());
1390 assert_eq!(ops.path(), "test.txt");
1391 assert!(ops.has_operations());
1392 }
1393
1394 #[test]
1395 fn test_file_ops_delete() {

Callers

nothing calls this directly

Calls 2

test_trunk_idFunction · 0.70
createFunction · 0.50

Tested by

no test coverage detected