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

Function test_max_turn_number

atomic-core/src/change/envelope.rs:1083–1090  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

turn_numberMethod · 0.80
decodeFunction · 0.50
buildMethod · 0.45
unwrapMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected