()
| 547 | // standard output parses as JSON and check a couple top-level keys. |
| 548 | #[test] |
| 549 | fn debug_json_schema() { |
| 550 | use serde_json::Value; |
| 551 | |
| 552 | let output = prqlc_command() |
| 553 | .args(["debug", "json-schema", "--ir-type", "pl"]) |
| 554 | .output() |
| 555 | .unwrap(); |
| 556 | |
| 557 | assert!(output.status.success()); |
| 558 | |
| 559 | let stdout = std::str::from_utf8(&output.stdout).unwrap(); |
| 560 | let parsed: Value = serde_json::from_str(stdout).unwrap(); |
| 561 | |
| 562 | assert_eq!( |
| 563 | parsed["$schema"], |
| 564 | "https://json-schema.org/draft/2020-12/schema" |
| 565 | ); |
| 566 | assert_eq!(parsed["type"], "object"); |
| 567 | assert_eq!(parsed["title"], "ModuleDef"); |
| 568 | } |
| 569 | |
| 570 | #[test] |
| 571 | fn shell_completion() { |
nothing calls this directly
no test coverage detected