MCPcopy Create free account
hub / github.com/apache/datafusion / write_suite_list_entry

Function write_suite_list_entry

benchmarks/src/benchmark_runner/output.rs:41–65  ·  view source on GitHub ↗

Writes one suite entry for the `list` command.

(output: &mut String, suite: &SuiteConfig)

Source from the content-addressed store, hash-verified

39
40/// Writes one suite entry for the `list` command.
41fn write_suite_list_entry(output: &mut String, suite: &SuiteConfig) -> Result<()> {
42 writeln!(output, "{}", header(&suite.name))?;
43 writeln!(output, " {}: {}", label("description"), suite.description)?;
44
45 let queries = suite.discover_queries()?;
46
47 if let (Some(first), Some(last)) = (queries.first(), queries.last()) {
48 writeln!(
49 output,
50 " {}: {}-{} discovered under {} as {}",
51 label("query ids"),
52 value(first.id),
53 value(last.id),
54 suite.query_search_root().display(),
55 literal("qNN.benchmark")
56 )?;
57 }
58 writeln!(output, " {}:", label("options"))?;
59
60 for option in &suite.options {
61 write_suite_list_option(output, option)?;
62 }
63
64 Ok(())
65}
66
67/// Writes one suite option summary for the `list` command.
68fn write_suite_list_option(output: &mut String, option: &SuiteOption) -> Result<()> {

Callers 1

format_suite_list_styledFunction · 0.85

Calls 4

write_suite_list_optionFunction · 0.85
discover_queriesMethod · 0.80
lastMethod · 0.80
firstMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…