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

Function test_file_ops_edit

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

Source from the content-addressed store, hash-verified

1414
1415 #[test]
1416 fn test_file_ops_edit() {
1417 let mut ops = FileOps::edit(test_trunk_id(), "modify.txt".to_string());
1418 ops.add_line_op(LineOps::insert(test_branch_id(0), None, vec![]));
1419
1420 assert!(ops.is_edit());
1421 assert!(!ops.is_create());
1422 assert_eq!(ops.line_count(), 1);
1423 }
1424
1425 #[test]
1426 fn test_file_ops_token_count() {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected