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

Function test_line_ops_display

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

Source from the content-addressed store, hash-verified

1011
1012 #[test]
1013 fn test_line_ops_display() {
1014 let ops = LineOps::insert(
1015 test_branch_id(0),
1016 None,
1017 vec![
1018 LeafOp::Insert {
1019 after: None,
1020 kind: TokenKind::Word,
1021 content: b"Hello".to_vec(),
1022 },
1023 LeafOp::Insert {
1024 after: None,
1025 kind: TokenKind::Word,
1026 content: b"World".to_vec(),
1027 },
1028 ],
1029 );
1030 let display = format!("{}", ops);
1031 assert!(display.contains("insert"));
1032 assert!(display.contains("2 tokens"));
1033 }
1034
1035 #[test]
1036 fn test_line_ops_into_parts() {

Callers

nothing calls this directly

Calls 1

test_branch_idFunction · 0.85

Tested by

no test coverage detected