Skip to content

Add tests for serde impl's Visitor::expected#213

Merged
tarcieri merged 1 commit intomasterfrom
test-serde-visitor-expected
Apr 6, 2026
Merged

Add tests for serde impl's Visitor::expected#213
tarcieri merged 1 commit intomasterfrom
test-serde-visitor-expected

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented Apr 6, 2026

This is what is added to error messages when we're expecting an Array but some other type in a self-describing format is encountered instead.

To test this we need a self-describing format, so this uses serde_json, and replaces postcard with serde_json for the round trip test since we can't use postcard to test both.

This is what is added to error messages when we're expecting an `Array`
but some other type in a self-describing format is encountered instead.

To test this we need a self-describing format, so this uses
`serde_json`, and replaces `postcard` with `serde_json` for the round
trip test since we can't use `postcard` to test both.
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.93%. Comparing base (25d2b78) to head (9fee29c).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
+ Coverage   98.38%   98.93%   +0.54%     
==========================================
  Files           7        7              
  Lines         558      562       +4     
==========================================
+ Hits          549      556       +7     
+ Misses          9        6       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tarcieri tarcieri merged commit b3b36c6 into master Apr 6, 2026
16 checks passed
@tarcieri tarcieri deleted the test-serde-visitor-expected branch April 6, 2026 15:53
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