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

Function test_hunk_display

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

Source from the content-addressed store, hash-verified

776
777 #[test]
778 fn test_hunk_display() {
779 let graph_op: GraphOp<Hash> = GraphOp::FileAdd {
780 add_name: test_new_vertex(),
781 add_inode: test_new_vertex(),
782 contents: None,
783 path: "test.txt".to_string(),
784 encoding: None,
785 };
786
787 let display = format!("{}", graph_op);
788 assert!(display.contains("FileAdd"));
789 assert!(display.contains("test.txt"));
790 }
791
792 #[test]
793 fn test_edit_display() {

Callers

nothing calls this directly

Calls 1

test_new_vertexFunction · 0.70

Tested by

no test coverage detected