@@ -778,8 +778,8 @@ fn test_no_redundant_transfer() {
778778
779779/// Verifies that:
780780/// - After TTL expires, cached partials are cleaned up.
781- /// - This is verified by observing that handle_received returns EmitEvent
782- /// (as if seeing the group_id for the first time) instead of Publish.
781+ /// - This is verified by observing that handle_received
782+ /// returns EmitEvent (as if seeing the group_id for the first time) instead of Publish.
783783#[ test]
784784fn test_heartbeat_ttl_expiry ( ) {
785785 let topic_hash = TopicHash :: from_raw ( "test-topic" ) ;
@@ -982,7 +982,8 @@ fn test_unsubscribe_cleanup() {
982982}
983983
984984/// Verifies that:
985- /// - When a peer unsubscribes from a topic, their partial message state for that topic is cleaned up.
985+ /// - When a peer unsubscribes from a topic,
986+ /// their partial message state for that topic is cleaned up.
986987/// - After the peer re-subscribes, we treat them as fresh (no knowledge of what they have).
987988#[ test]
988989fn test_peer_unsubscribed_cleanup ( ) {
@@ -1148,7 +1149,8 @@ fn test_peer_unsubscribed_preserves_other_topics() {
11481149}
11491150
11501151/// Verifies that:
1151- /// - `requests_partial()` and `supports_partial()` return correct values based on peer subscription options.
1152+ /// - `requests_partial()` and `supports_partial()`
1153+ /// return correct values based on peer subscription options.
11521154/// - Options are correctly tracked per peer per topic.
11531155#[ test]
11541156fn test_subscription_options_tracking ( ) {
@@ -1326,10 +1328,10 @@ fn test_metadata_only_update_unchanged_returns_empty() {
13261328}
13271329
13281330/// Verifies that:
1329- /// - When Node A receives data from Node B, `RemotePartial::metadata` is updated
1330- /// via `update_from_data` to reflect that B knows A now has those parts.
1331- /// - On the next `handle_publish`, no message is sent because B's view of A's
1332- /// metadata (`RemotePartial::metadata`) already matches A's current state.
1331+ /// - When Node A receives data from Node B, `RemotePartial::metadata` is updated via
1332+ /// `update_from_data` to reflect that B knows A now has those parts.
1333+ /// - On the next `handle_publish`, no message is sent because B's view of A's metadata
1334+ /// (`RemotePartial::metadata`) already matches A's current state.
13331335#[ test]
13341336fn test_handle_publish_skips_redundant_update_after_receiving_data ( ) {
13351337 let topic_hash = TopicHash :: from_raw ( "test-topic" ) ;
@@ -1759,7 +1761,8 @@ fn test_partial_subscription_options_respected() {
17591761/// Verifies that:
17601762/// - A peer with `supports_partial: true` but `requests_partial: false` receives a PartialMessage.
17611763/// - The PartialMessage contains metadata but NO body.
1762- /// - A peer with both `supports_partial: true` and `requests_partial: true` receives body AND metadata.
1764+ /// - A peer with both `supports_partial: true` and `requests_partial: true` receives body AND
1765+ /// metadata.
17631766#[ test]
17641767fn test_partial_requests_partial_metadata_only ( ) {
17651768 let group_id: [ u8 ; 8 ] = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 ] ;
@@ -1942,8 +1945,8 @@ fn test_partial_messages_response_on_receive() {
19421945/// Verifies that:
19431946/// - Peers with `requestsPartial=true` do NOT receive IHAVE messages during gossip.
19441947/// - Peers with `requestsPartial=false` still receive IHAVE messages normally.
1945- /// - This implements the spec: "When Gossiping, a node that supports partial messages
1946- /// SHOULD NOT send an IHAVE to a peer that requested partial messages."
1948+ /// - This implements the spec: "When Gossiping, a node that supports partial messages SHOULD NOT
1949+ /// send an IHAVE to a peer that requested partial messages."
19471950#[ test]
19481951fn test_ihave_not_sent_to_partial_peers ( ) {
19491952 let config = ConfigBuilder :: default ( )
0 commit comments