@@ -1701,13 +1701,12 @@ mod tests {
1701
1701
/// after which one peer bans the other.
1702
1702
///
1703
1703
/// The test expects both behaviours to be notified via pairs of
1704
- /// inject_connected / inject_disconnected as well as
1705
- /// inject_connection_established / inject_connection_closed calls
1706
- /// while unbanned.
1704
+ /// [`NetworkBehaviour::inject_connection_established`] / [`NetworkBehaviour::inject_connection_closed`]
1705
+ /// calls while unbanned.
1707
1706
///
1708
1707
/// While the ban is in effect, further dials occur. For these connections no
1709
- /// `inject_connected`, ` inject_connection_established`, `inject_disconnected`,
1710
- /// `inject_connection_closed` calls should be registered.
1708
+ /// [`NetworkBehaviour:: inject_connection_established`], [`NetworkBehaviour::inject_connection_closed`]
1709
+ /// calls should be registered.
1711
1710
#[ test]
1712
1711
fn test_connect_disconnect_ban ( ) {
1713
1712
// Since the test does not try to open any substreams, we can
@@ -1827,8 +1826,7 @@ mod tests {
1827
1826
/// after which one peer disconnects the other using [`Swarm::disconnect_peer_id`].
1828
1827
///
1829
1828
/// The test expects both behaviours to be notified via pairs of
1830
- /// inject_connected / inject_disconnected as well as
1831
- /// inject_connection_established / inject_connection_closed calls.
1829
+ /// [`NetworkBehaviour::inject_connection_established`] / [`NetworkBehaviour::inject_connection_closed`] calls.
1832
1830
#[ test]
1833
1831
fn test_swarm_disconnect ( ) {
1834
1832
// Since the test does not try to open any substreams, we can
@@ -1896,8 +1894,7 @@ mod tests {
1896
1894
/// using [`NetworkBehaviourAction::CloseConnection`] returned by a [`NetworkBehaviour`].
1897
1895
///
1898
1896
/// The test expects both behaviours to be notified via pairs of
1899
- /// inject_connected / inject_disconnected as well as
1900
- /// inject_connection_established / inject_connection_closed calls.
1897
+ /// [`NetworkBehaviour::inject_connection_established`] / [`NetworkBehaviour::inject_connection_closed`] calls.
1901
1898
#[ test]
1902
1899
fn test_behaviour_disconnect_all ( ) {
1903
1900
// Since the test does not try to open any substreams, we can
@@ -1967,8 +1964,7 @@ mod tests {
1967
1964
/// using [`NetworkBehaviourAction::CloseConnection`] returned by a [`NetworkBehaviour`].
1968
1965
///
1969
1966
/// The test expects both behaviours to be notified via pairs of
1970
- /// inject_connected / inject_disconnected as well as
1971
- /// inject_connection_established / inject_connection_closed calls.
1967
+ /// [`NetworkBehaviour::inject_connection_established`] / [`NetworkBehaviour::inject_connection_closed`] calls.
1972
1968
#[ test]
1973
1969
fn test_behaviour_disconnect_one ( ) {
1974
1970
// Since the test does not try to open any substreams, we can
0 commit comments