MCPcopy Index your code
hub / github.com/endbasic/endbasic / default

Method default

client/src/testutils.rs:286–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284
285impl Default for ClientTester {
286 fn default() -> Self {
287 let tester = Tester::default();
288 let console = tester.get_console();
289 let storage = tester.get_storage();
290 let service = Rc::from(RefCell::from(MockService::default()));
291 storage
292 .borrow_mut()
293 .register_scheme("cloud", Box::from(crate::CloudDriveFactory::new(service.clone())));
294 let tester = tester
295 .add_callable(LoginCommand::new(service.clone(), console.clone(), storage.clone()))
296 .add_callable(LogoutCommand::new(service.clone(), console.clone(), storage.clone()))
297 .add_callable(ShareCommand::new(
298 service.clone(),
299 console.clone(),
300 storage,
301 "https://repl.example.com/",
302 ))
303 .add_callable(SignupCommand::new(service.clone(), console));
304 ClientTester { tester, service }
305 }
306}
307
308impl ClientTester {

Callers

nothing calls this directly

Calls 4

register_schemeMethod · 0.80
get_consoleMethod · 0.45
get_storageMethod · 0.45
add_callableMethod · 0.45

Tested by

no test coverage detected