Skip to content

test: direct unit tests for flatten_query/push_query_value - #2

Merged
yokoszn merged 1 commit into
masterfrom
test/flatten-query-coverage
Sep 27, 2026
Merged

yokoszn merged 1 commit into
masterfrom
test/flatten-query-coverage

Conversation

@yokoszn

@yokoszn yokoszn commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds 6 direct unit tests for flatten_query/push_query_value (null-skip, scalar encoding, array bracket-key encoding, null elements inside arrays, non-object top-level input, nested-object debug_assert panic path).
  • Previously this logic was only exercised indirectly by the two real-response deserialization tests, which don't touch the GET query-encoding path at all.

Test plan

  • cargo clippy --all-targets -- -D warnings clean
  • cargo fmt --all -- --check clean
  • cargo test — 8/8 passing (6 new + 2 existing real-response tests)

…alue

Covers null-skip, scalar encoding, array bracket-key encoding, null
elements inside arrays, non-object top-level inputs, and the
nested-object debug_assert panic path — previously only exercised
indirectly through the two real-response deserialization tests, which
don't touch the query-encoding path at all.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Sep 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: d852d23e-4db8-4a9d-b372-14cf2e69e6ff

📥 Commits

Reviewing files that changed from the base of the PR and between 9dd6725 and e9e414b.

📒 Files selected for processing (1)
  • crates/operately-sdk/src/lib.rs

TWN-Systems is on CodeRabbit Free, which includes PR summaries. Ask your admin to upgrade for code reviews.

  • Ask an admin to upgrade

Open in CodeRabbit


Comment @coderabbitai help to get the list of available commands.

@yokoszn
yokoszn merged commit a5f9c29 into master Sep 27, 2026
2 of 4 checks passed
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