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

Function test_file_ops_create

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

Source from the content-addressed store, hash-verified

1158
1159 #[test]
1160 fn test_file_ops_create() {
1161 let ops = FileOps::create(
1162 test_trunk_id(),
1163 "test.txt".to_string(),
1164 Some(Encoding::Utf8),
1165 );
1166
1167 assert!(ops.is_create());
1168 assert!(!ops.is_delete());
1169 assert!(!ops.is_edit());
1170 assert_eq!(ops.path(), "test.txt");
1171 assert!(ops.has_operations());
1172 }
1173
1174 #[test]
1175 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