MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / get_unit_test_names

Method get_unit_test_names

parser/src/def/workspace.rs:199–213  ·  view source on GitHub ↗

Finished test [unoptimized + debuginfo] target(s) in 0.01s Running unittests src/lib.rs (target/debug/deps/quick_sort-c42cff5519f79ed2) conquer::test::test_partition: test conquer::test::test_partition2: test test::test_quicksort: test test::test_quicksort2: test 4 tests, 0 benchmarks

(&self)

Source from the content-addressed store, hash-verified

197 //
198 // 4 tests, 0 benchmarks
199 pub fn get_unit_test_names(&self) -> Result<Vec<String>> {
200 let output = self
201 .get_unit_test_cmd()
202 .arg("--color")
203 .arg("always")
204 .arg("--")
205 .arg("--list")
206 .output()?;
207 if !output.status.success() {
208 eprint!("{}", std::str::from_utf8(&output.stderr)?);
209 std::process::exit(1);
210 }
211 let stdout = String::from_utf8(output.stdout)?;
212 Ok(parse_test_testcases(stdout))
213 }
214
215 // Finished test [unoptimized + debuginfo] target(s) in 0.02s
216 // Executable unittests src/lib.rs (target/debug/deps/quick_sort-c42cff5519f79ed2)

Callers 2

mainFunction · 0.80
handle_testsFunction · 0.80

Calls 3

parse_test_testcasesFunction · 0.85
get_unit_test_cmdMethod · 0.80
outputMethod · 0.45

Tested by

no test coverage detected