@@ -379,6 +379,11 @@ mod unit {
379379 . times ( ..)
380380 . withf ( |buf : & [ u8 ] | buf == b"*RST\n " )
381381 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
382+ interface
383+ . expect_write ( )
384+ . times ( ..)
385+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
386+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
382387 interface
383388 . expect_write ( )
384389 . times ( ..)
@@ -551,6 +556,11 @@ mod unit {
551556 . times ( ..)
552557 . withf ( |buf : & [ u8 ] | buf == b"*RST\n " )
553558 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
559+ interface
560+ . expect_write ( )
561+ . times ( ..)
562+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
563+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
554564 interface
555565 . expect_write ( )
556566 . times ( ..)
@@ -694,6 +704,11 @@ mod unit {
694704 . times ( ..)
695705 . withf ( |buf : & [ u8 ] | buf == b"*RST\n " )
696706 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
707+ interface
708+ . expect_write ( )
709+ . times ( ..)
710+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
711+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
697712 interface
698713 . expect_write ( )
699714 . times ( ..)
@@ -827,6 +842,11 @@ mod unit {
827842 . times ( ..)
828843 . withf ( |buf : & [ u8 ] | buf == b"*RST\n " )
829844 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
845+ interface
846+ . expect_write ( )
847+ . times ( ..)
848+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
849+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
830850 interface
831851 . expect_write ( )
832852 . times ( ..)
@@ -884,6 +904,11 @@ mod unit {
884904 . times ( ..)
885905 . withf ( |buf : & [ u8 ] | buf == b"*RST\n " )
886906 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
907+ interface
908+ . expect_write ( )
909+ . times ( ..)
910+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
911+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
887912 interface
888913 . expect_write ( )
889914 . times ( ..)
@@ -931,6 +956,11 @@ mod unit {
931956 . times ( ..)
932957 . withf ( |buf : & [ u8 ] | buf == b"*RST\n " )
933958 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
959+ interface
960+ . expect_write ( )
961+ . times ( ..)
962+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
963+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
934964 interface
935965 . expect_write ( )
936966 . times ( ..)
@@ -988,6 +1018,13 @@ mod unit {
9881018 . withf ( move |buf : & [ u8 ] | buf == e)
9891019 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
9901020 }
1021+
1022+ interface
1023+ . expect_write ( )
1024+ . times ( ..)
1025+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
1026+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
1027+
9911028 let mut instrument: Instrument = Instrument :: new (
9921029 protocol:: Protocol :: Raw ( Raw :: new ( interface) ) ,
9931030 Authentication :: NoAuth ,
@@ -1036,6 +1073,12 @@ mod unit {
10361073 . withf ( move |buf : & [ u8 ] | buf == e)
10371074 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
10381075 }
1076+
1077+ interface
1078+ . expect_write ( )
1079+ . times ( ..)
1080+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
1081+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
10391082 let mut instrument: Instrument = Instrument :: new (
10401083 protocol:: Protocol :: Raw ( Raw :: new ( interface) ) ,
10411084 Authentication :: NoAuth ,
@@ -1085,6 +1128,12 @@ mod unit {
10851128 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
10861129 }
10871130
1131+ interface
1132+ . expect_write ( )
1133+ . times ( ..)
1134+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
1135+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
1136+
10881137 let mut instrument: Instrument = Instrument :: new (
10891138 protocol:: Protocol :: Raw ( Raw :: new ( interface) ) ,
10901139 Authentication :: NoAuth ,
@@ -1135,6 +1184,12 @@ mod unit {
11351184 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
11361185 }
11371186
1187+ interface
1188+ . expect_write ( )
1189+ . times ( ..)
1190+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
1191+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
1192+
11381193 let mut instrument: Instrument = Instrument :: new (
11391194 protocol:: Protocol :: Raw ( Raw :: new ( interface) ) ,
11401195 Authentication :: NoAuth ,
@@ -1213,6 +1268,11 @@ mod unit {
12131268 . times ( ..)
12141269 . withf ( |buf : & [ u8 ] | buf == b"*RST\n " )
12151270 . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
1271+ interface
1272+ . expect_write ( )
1273+ . times ( ..)
1274+ . withf ( |buf : & [ u8 ] | buf == b"localnode.prompts = 0\n " )
1275+ . returning ( |buf : & [ u8 ] | Ok ( buf. len ( ) ) ) ;
12161276 interface
12171277 . expect_write ( )
12181278 . times ( ..)
0 commit comments