MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / build

Method build

crates/testing/src/sdk.rs:449–481  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

447 }
448
449 pub fn build(self) -> Test {
450 let generate_language = self
451 .generate_language
452 .expect("Supply a client language using TestBuilder::with_language");
453
454 // For non-Unreal: require generate_subdir as before.
455 // For Unreal: ignore generate_subdir entirely, but still populate with a harmless placeholder.
456 let msg = if language_is_unreal(&generate_language) {
457 "Supply an Unreal module name using TestBuilder::with_unreal_module"
458 } else {
459 "Supply a module_bindings subdirectory using TestBuilder::with_bindings_dir"
460 };
461 let generate_subdir = self.generate_subdir.expect(msg);
462
463 Test {
464 name: self.name.expect("Supply a test name using TestBuilder::with_name"),
465 module_name: self
466 .module_name
467 .expect("Supply a module name using TestBuilder::with_module"),
468 client_project: self
469 .client_project
470 .expect("Supply a client project directory using TestBuilder::with_client"),
471 generate_language,
472 generate_include_private: self.generate_include_private,
473 generate_subdir,
474 compile_command: self
475 .compile_command
476 .expect("Supply a compile command using TestBuilder::with_compile_command"),
477 run_command: self
478 .run_command
479 .expect("Supply a run command using TestBuilder::with_run_command"),
480 }
481 }
482}

Callers 15

newMethod · 0.45
replace_in_treeFunction · 0.45
connectStdbFunction · 0.45
newMethod · 0.45
newMethod · 0.45
cmd_analyzeFunction · 0.45
connect_to_dbFunction · 0.45
mainFunction · 0.45
people.get.tsFile · 0.45
mainFunction · 0.45
runOneFunction · 0.45

Calls 1

language_is_unrealFunction · 0.85

Tested by

no test coverage detected