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 ;
@@ -118,6 +120,21 @@ impl<L: Deref + Clone + Send + Sync + 'static> RapidSyncProcessor<L> where L::Ta
118
120
}
119
121
}
120
122
123
+ #[ cfg( test) ]
124
+ impl Debug for SerializedResponse {
125
+ fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
126
+ write ! (
127
+ f,
128
+ "\n messages: {}\n \t announcements: {}\n \t updates: {}\n \t \t full: {}\n \t \t incremental: {}" ,
129
+ self . message_count,
130
+ self . announcement_count,
131
+ self . update_count,
132
+ self . update_count_full,
133
+ self . update_count_incremental
134
+ )
135
+ }
136
+ }
137
+
121
138
pub ( crate ) async fn connect_to_db ( ) -> Client {
122
139
let connection_config = config:: db_connection_config ( ) ;
123
140
let ( client, connection) = connection_config. connect ( NoTls ) . await . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments