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

Function test_stash_entry_display

atomic-cli/src/commands/stash.rs:591–604  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

589
590 #[test]
591 fn test_stash_entry_display() {
592 let entry = StashEntry {
593 index: 0,
594 view_name: "stash/test".to_string(),
595 source_view: "feature".to_string(),
596 message: "Work in progress".to_string(),
597 created_at: Utc::now(),
598 };
599
600 let display = entry.display();
601 assert!(display.contains("stash@{0}"));
602 assert!(display.contains("feature"));
603 assert!(display.contains("Work in progress"));
604 }
605
606 // Constants Tests
607

Callers

nothing calls this directly

Calls 1

displayMethod · 0.80

Tested by

no test coverage detected