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

Function test_file_ops_move

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

Source from the content-addressed store, hash-verified

1182
1183 #[test]
1184 fn test_file_ops_move() {
1185 let ops = FileOps::move_file(
1186 test_trunk_id(),
1187 "old/path.txt".to_string(),
1188 "new/path.txt".to_string(),
1189 );
1190
1191 assert!(ops.is_move());
1192 assert_eq!(ops.path(), "new/path.txt");
1193 }
1194
1195 #[test]
1196 fn test_file_ops_edit() {

Callers

nothing calls this directly

Calls 1

test_trunk_idFunction · 0.70

Tested by

no test coverage detected