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

Function test_phase_as_str_roundtrip

atomic-agent/src/turn/phase.rs:740–750  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

738
739 #[test]
740 fn test_phase_as_str_roundtrip() {
741 for phase in &ALL_PHASES {
742 let s = phase.as_str();
743 let recovered = Phase::from_str_normalized(s);
744 assert_eq!(
745 *phase, recovered,
746 "Phase roundtrip failed for {:?} -> {:?} -> {:?}",
747 phase, s, recovered
748 );
749 }
750 }
751
752 #[test]
753 fn test_phase_display() {

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected