Skip to content

test(cli): cover SQL Select parser options#148

Merged
overtrue merged 1 commit intomainfrom
codex/test-gap-detection-20260422
Apr 22, 2026
Merged

test(cli): cover SQL Select parser options#148
overtrue merged 1 commit intomainfrom
codex/test-gap-detection-20260422

Conversation

@overtrue
Copy link
Copy Markdown
Contributor

Related issue

Automated test-gap detection for the recent S3 Select command work.

Background

The recent SQL Select feature added a new top-level rc sql command with format and compression flags. Existing coverage included help output and early execution errors, while PR #147 covers S3 request serialization. The remaining gap was the root CLI parser path that binds user-provided SQL Select options into SqlArgs.

Solution

Add focused parser coverage for rc sql with explicit JSON input/output and gzip compression, plus a defaults case for CSV input/output and no compression. This keeps the scope limited to command wiring and avoids duplicating the S3 serialization tests already covered elsewhere.

Validation

  • cargo test -p rustfs-cli commands::tests::cli_accepts_sql --lib
  • make pre-commit

@overtrue overtrue marked this pull request as ready for review April 22, 2026 01:10
@overtrue overtrue merged commit 403eea1 into main Apr 22, 2026
15 checks passed
@overtrue overtrue deleted the codex/test-gap-detection-20260422 branch April 22, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant