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

Function test_file_del

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

Source from the content-addressed store, hash-verified

920
921 #[test]
922 fn test_file_del() {
923 let graph_op: GraphOp<Hash> = GraphOp::FileDel {
924 del: test_edge_map(),
925 contents: None,
926 path: "old_file.txt".to_string(),
927 encoding: Some(Encoding::Utf8),
928 };
929
930 assert!(graph_op.is_file_operation());
931 assert_eq!(graph_op.path(), Some("old_file.txt"));
932 assert_eq!(graph_op.type_name(), "FileDel");
933 }
934
935 #[test]
936 fn test_file_move() {

Callers

nothing calls this directly

Calls 1

test_edge_mapFunction · 0.85

Tested by

no test coverage detected