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

Function test_cli_format

datafusion-cli/tests/cli_integration.rs:199–208  ·  view source on GitHub ↗
(#[case] format: &'a str)

Source from the content-addressed store, hash-verified

197#[case("automatic")]
198#[test]
199fn test_cli_format<'a>(#[case] format: &'a str) {
200 let mut settings = make_settings();
201 settings.set_snapshot_suffix(format);
202 let _bound = settings.bind_to_scope();
203
204 let mut cmd = cli();
205 cmd.args(["--command", "select 1", "-q", "--format", format]);
206
207 assert_cmd_snapshot!(cmd);
208}
209
210#[rstest]
211#[case("no_track", ["--top-memory-consumers", "0"])]

Callers

nothing calls this directly

Calls 3

make_settingsFunction · 0.70
cliFunction · 0.70
argsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…