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

Function test_replacement

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

Source from the content-addressed store, hash-verified

737
738 #[test]
739 fn test_replacement() {
740 let graph_op: GraphOp<Hash> = GraphOp::Replacement {
741 change: test_edge_map(),
742 replacement: test_new_vertex(),
743 local: Local::new("src/main.rs", 100),
744 encoding: Some(Encoding::Utf8),
745 };
746
747 assert!(graph_op.is_content_edit());
748 assert_eq!(graph_op.path(), Some("src/main.rs"));
749 assert_eq!(graph_op.line(), Some(100));
750 }
751
752 #[test]
753 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