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

Function test_change_ref_description

atomic-cli/src/commands/revise.rs:774–782  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

772
773 #[test]
774 fn test_change_ref_description() {
775 assert_eq!(ChangeRef::Last.description(), "@");
776 assert_eq!(ChangeRef::Relative(1).description(), "@~1");
777 assert_eq!(ChangeRef::Relative(5).description(), "@~5");
778 assert_eq!(
779 ChangeRef::Hash("ABC123".to_string()).description(),
780 "ABC123"
781 );
782 }
783
784 #[test]
785 fn test_change_ref_default() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected