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

Function test_json_hunk_summary_clone

atomic-cli/src/commands/change/tests.rs:775–783  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

773
774 #[test]
775 fn test_json_hunk_summary_clone() {
776 let summary = JsonHunkSummary {
777 hunk_type: "Edit".to_string(),
778 path: Some("file.rs".to_string()),
779 };
780 let cloned = summary.clone();
781 assert_eq!(summary.hunk_type, cloned.hunk_type);
782 assert_eq!(summary.path, cloned.path);
783 }
784
785 #[test]
786 fn test_json_change_clone() {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected