-
Notifications
You must be signed in to change notification settings - Fork 46
chore: update to latest shared tests, include new case, bump deps #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the shared test files submodule to the latest version and adds a new test case to verify the fix for bug #98 reported by @rnd-ash. The change confirms that the previously problematic file now generates and compiles correctly.
Changes:
- Updated shared-test-files submodule to latest commit
- Added new snapshot test files for bug_dbc-codegen_98 case
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
| tests/fixtures/shared-test-files | Updates submodule commit reference to include new test case |
| tests-snapshots/oxibus/bug_dbc-codegen_98.snap.rs | Adds generated Rust code snapshot for the new test case |
| tests-snapshots/oxibus/bug_dbc-codegen_98.snap | Adds metadata file for the new snapshot test |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR includes #127 which should be merged first In a case with duplicate names: ``` VAL_TABLE_ Bar 6 "reserved" 5 "reserved" 4 "unused 2" 3 "unused" 2 "unused" 1 "#%=*�'" 0 "With space" -5 "A negative value" ; VAL_ 0 Foo 6 "reserved" 5 "reserved" 4 "unused 2" 3 "unused" 2 "unused" 1 "#%=*�'" 0 "With space" -5 "A negative value" ; ``` generate parametrized enum instead: ```rust match signal { 6 => FooFoo::Reserved(6), 5 => FooFoo::Reserved(5), 4 => FooFoo::Unused2, 3 => FooFoo::Unused(3), 2 => FooFoo::Unused(2), 1 => FooFoo::XÄ, 0 => FooFoo::WithSpace, -5 => FooFoo::ANegativeValue, _ => FooFoo::_Other(self.foo_raw()), } ``` * use appropriate signed type too: `u8` -> `i8` ``` let signal = self.raw.view_bits::<Lsb0>()[0..8].load_le::<i8>(); ``` * streamline multiplex indicator handling and enhance enum variant generation
This tests the file submitted by @rnd-ash in #98. It seems the file already generates and compiles correctly.