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

Function test_file_del

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

Source from the content-addressed store, hash-verified

695
696 #[test]
697 fn test_file_del() {
698 let graph_op: GraphOp<Hash> = GraphOp::FileDel {
699 del: test_edge_map(),
700 contents: None,
701 path: "old_file.txt".to_string(),
702 encoding: Some(Encoding::Utf8),
703 };
704
705 assert!(graph_op.is_file_operation());
706 assert_eq!(graph_op.path(), Some("old_file.txt"));
707 assert_eq!(graph_op.type_name(), "FileDel");
708 }
709
710 #[test]
711 fn test_file_move() {

Callers

nothing calls this directly

Calls 1

test_edge_mapFunction · 0.85

Tested by

no test coverage detected