()
| 106 | |
| 107 | #[test] |
| 108 | fn 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] |
| 121 | fn test_csv_output() { |
nothing calls this directly
no test coverage detected