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

Function test_file_move

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

Source from the content-addressed store, hash-verified

934
935 #[test]
936 fn test_file_move() {
937 let graph_op: GraphOp<Hash> = GraphOp::FileMove {
938 del: test_edge_map(),
939 add: test_new_vertex(),
940 path: "new/path/file.rs".to_string(),
941 };
942
943 assert!(graph_op.is_file_operation());
944 assert_eq!(graph_op.path(), Some("new/path/file.rs"));
945 assert_eq!(graph_op.encoding(), None);
946 }
947
948 #[test]
949 fn test_edit() {

Callers

nothing calls this directly

Calls 2

test_edge_mapFunction · 0.85
test_new_vertexFunction · 0.70

Tested by

no test coverage detected