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

Function test_file_ops_edit

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

Source from the content-addressed store, hash-verified

858
859 #[test]
860 fn test_file_ops_edit() {
861 let mut ops = FileOps::edit(test_trunk_id(), "modify.txt".to_string());
862 ops.add_line_op(LineOps::insert(test_branch_id(0), None, vec![]));
863
864 assert!(ops.is_edit());
865 assert!(!ops.is_create());
866 assert_eq!(ops.line_count(), 1);
867 }
868
869 #[test]
870 fn test_file_ops_token_count() {

Callers

nothing calls this directly

Calls 3

test_branch_idFunction · 0.85
test_trunk_idFunction · 0.70
add_line_opMethod · 0.45

Tested by

no test coverage detected