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

Function test_file_ops_edit

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

Source from the content-addressed store, hash-verified

1194
1195 #[test]
1196 fn test_file_ops_edit() {
1197 let mut ops = FileOps::edit(test_trunk_id(), "modify.txt".to_string());
1198 ops.add_line_op(LineOps::insert(test_branch_id(0), None, vec![]));
1199
1200 assert!(ops.is_edit());
1201 assert!(!ops.is_create());
1202 assert_eq!(ops.line_count(), 1);
1203 }
1204
1205 #[test]
1206 fn test_file_ops_token_count() {

Callers

nothing calls this directly

Calls 4

editFunction · 0.85
test_branch_idFunction · 0.85
test_trunk_idFunction · 0.70
add_line_opMethod · 0.45

Tested by

no test coverage detected