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

Function test_stash_entry_reference

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

Source from the content-addressed store, hash-verified

563
564 #[test]
565 fn test_stash_entry_reference() {
566 let entry = StashEntry {
567 index: 0,
568 view_name: "stash/test".to_string(),
569 source_view: "dev".to_string(),
570 message: "WIP".to_string(),
571 created_at: Utc::now(),
572 };
573
574 assert_eq!(entry.reference(), "stash@{0}");
575 }
576
577 #[test]
578 fn test_stash_entry_reference_nonzero() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected