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

Function test_stash_entry_display

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

Source from the content-addressed store, hash-verified

833
834 #[test]
835 fn test_stash_entry_display() {
836 let entry = StashEntry {
837 index: 0,
838 view_name: "stash/test".to_string(),
839 source_view: "feature".to_string(),
840 message: "Work in progress".to_string(),
841 created_at: Utc::now(),
842 };
843
844 let display = entry.display();
845 assert!(display.contains("stash@{0}"));
846 assert!(display.contains("feature"));
847 assert!(display.contains("Work in progress"));
848 }
849
850 // Constants Tests
851

Callers

nothing calls this directly

Calls 1

displayMethod · 0.80

Tested by

no test coverage detected