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

Function test_replacement

atomic-core/src/change/graph_op.rs:964–975  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

962
963 #[test]
964 fn test_replacement() {
965 let graph_op: GraphOp<Hash> = GraphOp::Replacement {
966 change: test_edge_map(),
967 replacement: test_new_vertex(),
968 local: Local::new("src/main.rs", 100),
969 encoding: Some(Encoding::Utf8),
970 };
971
972 assert!(graph_op.is_content_edit());
973 assert_eq!(graph_op.path(), Some("src/main.rs"));
974 assert_eq!(graph_op.line(), Some(100));
975 }
976
977 #[test]
978 fn test_solve_name_conflict() {

Callers

nothing calls this directly

Calls 2

test_edge_mapFunction · 0.85
test_new_vertexFunction · 0.70

Tested by

no test coverage detected