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

Function test_hunk_display

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

test_new_vertexFunction · 0.70

Tested by

no test coverage detected