Lines Matching refs:rpc_looper

33     let mut rpc_looper = RpcLoop::new(tx);  in test_startup()  localVariable
38 assert!(rpc_looper.mainloop(|| json, &mut state).is_ok()); in test_startup()
44 assert!(rpc_looper.mainloop(|| json, &mut state).is_ok()); in test_startup()
65 let mut rpc_looper = RpcLoop::new(write); in test_state() localVariable
66 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_state()
75 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_state()
88 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_state()
101 let mut rpc_looper = RpcLoop::new(write); in test_malformed_json() localVariable
107 match rpc_looper.mainloop(|| read, &mut state).err().expect("malformed json exits with error") { in test_malformed_json()
127 let mut rpc_looper = RpcLoop::new(write); in test_movement_cmds() localVariable
134 assert!(rpc_looper.mainloop(|| json, &mut state).is_ok()); in test_movement_cmds()
137 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_movement_cmds()
146 let mut rpc_looper = RpcLoop::new(write); in test_text_commands() localVariable
153 assert!(rpc_looper.mainloop(|| json, &mut state).is_ok()); in test_text_commands()
156 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_text_commands()
163 let mut rpc_looper = RpcLoop::new(write); in test_other_edit_commands() localVariable
170 assert!(rpc_looper.mainloop(|| json, &mut state).is_ok()); in test_other_edit_commands()
173 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_other_edit_commands()
180 let mut rpc_looper = RpcLoop::new(tx); in test_settings_commands() localVariable
187 assert!(rpc_looper.mainloop(|| json, &mut state).is_ok()); in test_settings_commands()
199 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_settings_commands()
206 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_settings_commands()
212 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_settings_commands()
219 rpc_looper.mainloop(|| json, &mut state).unwrap(); in test_settings_commands()