MCPcopy Create free account
hub / github.com/douglance/devsql / test_json_output

Function test_json_output

crates/vcsql/tests/cli.rs:108–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107#[test]
108fn test_json_output() {
109 let temp = create_test_repo();
110
111 let mut cmd = Command::new(env!("CARGO_BIN_EXE_vcsql"));
112 cmd.args(["--repo", temp.path().to_str().unwrap(), "--format", "json"])
113 .arg("SELECT short_id, summary FROM commits")
114 .assert()
115 .success()
116 .stdout(predicate::str::contains("["))
117 .stdout(predicate::str::contains("\"summary\""));
118}
119
120#[test]
121fn test_csv_output() {

Callers

nothing calls this directly

Calls 2

pathMethod · 0.80
create_test_repoFunction · 0.70

Tested by

no test coverage detected