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

Function test_file_move

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

Source from the content-addressed store, hash-verified

709
710 #[test]
711 fn test_file_move() {
712 let graph_op: GraphOp<Hash> = GraphOp::FileMove {
713 del: test_edge_map(),
714 add: test_new_vertex(),
715 path: "new/path/file.rs".to_string(),
716 };
717
718 assert!(graph_op.is_file_operation());
719 assert_eq!(graph_op.path(), Some("new/path/file.rs"));
720 assert_eq!(graph_op.encoding(), None);
721 }
722
723 #[test]
724 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