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

Function test_line_ops_insert

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

Source from the content-addressed store, hash-verified

946
947 #[test]
948 fn test_line_ops_insert() {
949 let ops = LineOps::insert(
950 test_branch_id(0),
951 None,
952 vec![LeafOp::Insert {
953 after: None,
954 kind: TokenKind::Word,
955 content: b"Hello".to_vec(),
956 }],
957 );
958
959 assert!(ops.is_insert());
960 assert!(!ops.is_delete());
961 assert_eq!(ops.leaf_op_count(), 1);
962 assert_eq!(ops.insert_after(), None);
963 }
964
965 #[test]
966 fn test_line_ops_insert_after() {

Callers

nothing calls this directly

Calls 1

test_branch_idFunction · 0.85

Tested by

no test coverage detected