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

Function test_max_turn_number

atomic-agent/src/envelope.rs:1088–1095  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1086
1087 #[test]
1088 fn test_max_turn_number() {
1089 let e = SessionEnvelope::builder("s", "a")
1090 .turn_number(u32::MAX)
1091 .build();
1092 let bytes = e.encode().unwrap();
1093 let decoded = SessionEnvelope::decode(&bytes).unwrap();
1094 assert_eq!(decoded.turn_number, u32::MAX);
1095 }
1096
1097 #[test]
1098 fn test_clone_eq() {

Callers

nothing calls this directly

Calls 4

turn_numberMethod · 0.80
encodeMethod · 0.80
buildMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected