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

Function test_hunk_display

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

Source from the content-addressed store, hash-verified

1060
1061 #[test]
1062 fn test_hunk_display() {
1063 let graph_op: GraphOp<Hash> = GraphOp::FileAdd {
1064 add_name: test_new_vertex(),
1065 add_inode: test_new_vertex(),
1066 contents: None,
1067 path: "test.txt".to_string(),
1068 encoding: None,
1069 };
1070
1071 let display = format!("{}", graph_op);
1072 assert!(display.contains("FileAdd"));
1073 assert!(display.contains("test.txt"));
1074 }
1075
1076 #[test]
1077 fn test_edit_display() {

Callers

nothing calls this directly

Calls 1

test_new_vertexFunction · 0.70

Tested by

no test coverage detected