Skip to content

Return error type for unimplemented uds messages#39

Merged
matthew-beisser merged 3 commits into
mainfrom
feat/uds_add_not_implemented_error
Dec 16, 2025
Merged

Return error type for unimplemented uds messages#39
matthew-beisser merged 3 commits into
mainfrom
feat/uds_add_not_implemented_error

Conversation

@matthew-beisser
Copy link
Copy Markdown
Contributor

@matthew-beisser matthew-beisser commented Dec 15, 2025

Currently, UDS panics when it encounters a message that isn't implemented. This limits testing and prevents applications from handling an unimplemented error themselves.

This PR replaces the todo()!s in both

  • impl<T: DiagnosticDefinition> WireFormat for Request<T>::decode()
  • impl<D: DiagnosticDefinition> WireFormat for Response<D>::decode()

with errors.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 15, 2025

Codecov Report

❌ Patch coverage is 0% with 78 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/request.rs 0.00% 42 Missing ⚠️
src/response.rs 0.00% 36 Missing ⚠️
Files with missing lines Coverage Δ
src/response.rs 0.00% <0.00%> (ø)
src/request.rs 31.93% <0.00%> (-3.51%) ⬇️

@matthew-beisser matthew-beisser changed the title Add not implemented error for diagnostic definition request & response Return error type for unimplemented uds messages Dec 15, 2025
@matthew-beisser matthew-beisser marked this pull request as ready for review December 15, 2025 21:49
Copy link
Copy Markdown
Contributor

@zheylmun zheylmun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@matthew-beisser matthew-beisser merged commit 61c04bc into main Dec 16, 2025
5 of 6 checks passed
@matthew-beisser matthew-beisser deleted the feat/uds_add_not_implemented_error branch December 16, 2025 15:22
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.

2 participants