File tree 1 file changed +17
-0
lines changed 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 10
10
extern crate core;
11
11
12
12
use std:: collections:: { HashMap , HashSet } ;
13
+ #[ cfg( test) ]
14
+ use std:: fmt:: { Debug , Formatter } ;
13
15
use std:: fs:: File ;
14
16
use std:: io:: BufReader ;
15
17
use std:: ops:: Deref ;
@@ -114,6 +116,21 @@ impl<L: Deref + Clone + Send + Sync + 'static> RapidSyncProcessor<L> where L::Ta
114
116
}
115
117
}
116
118
119
+ #[ cfg( test) ]
120
+ impl Debug for SerializedResponse {
121
+ fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
122
+ write ! (
123
+ f,
124
+ "\n messages: {}\n \t announcements: {}\n \t updates: {}\n \t \t full: {}\n \t \t incremental: {}" ,
125
+ self . message_count,
126
+ self . announcement_count,
127
+ self . update_count,
128
+ self . update_count_full,
129
+ self . update_count_incremental
130
+ )
131
+ }
132
+ }
133
+
117
134
pub ( crate ) async fn connect_to_db ( ) -> Client {
118
135
let connection_config = config:: db_connection_config ( ) ;
119
136
let ( client, connection) = connection_config. connect ( NoTls ) . await . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments