MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / create_test_setup

Function create_test_setup

src/executor/tests.rs:123–130  ·  view source on GitHub ↗
(config: ExecutorConfig)

Source from the content-addressed store, hash-verified

121 pub fn env_test_cases(#[case] env_case: (&str, &str)) {}
122
123 pub async fn create_test_setup(config: ExecutorConfig) -> (ExecutionContext, TempDir) {
124 let temp_dir = TempDir::new().unwrap();
125
126 let profile_folder = temp_dir.path().to_path_buf();
127 let execution_context = ExecutionContext::new(config, profile_folder);
128
129 (execution_context, temp_dir)
130 }
131
132 // Uprobes set by memtrack, lead to crashes in valgrind because they work by setting breakpoints on the first
133 // instruction. Valgrind doesn't rethrow those breakpoint exceptions, which makes the test crash.

Calls 1

pathMethod · 0.80

Tested by

no test coverage detected