Skip to content

fix: readd generated code - #80

Merged
d2weber merged 2 commits into
chatmail:mainfrom
d2weber:readd
Sep 3, 2026
Merged

fix: readd generated code#80
d2weber merged 2 commits into
chatmail:mainfrom
d2weber:readd

Conversation

@d2weber

@d2weber d2weber commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

In #78 the #[test] generation has been removed, this left the folders yerpc/tests/{qt,typescript} stale. Note: the commited generated qt bindings have been out of sync with the actual implementation and are updated in this pr, that's why the diff for yerpc/tests/snapshots/axum__tests__qt__client_hpp.snap is larger.

This PR uses insta to test the generated code. When using insta, a test run will make sure the snapshots are always in sync (as opposed to the former approach, where updates were silently overwritten)

In chatmail#78 the `#[test]` generation has been removed, this left the folders
`yerpc/tests/{qt,typescript}` stale.

This PR uses [insta](https://docs.rs/insta/latest/insta/index.html) to
test the generated code. When using insta, a test run will make sure the
snapshots are always in sync (as opposed to the former approach, where
updates were silently overwritten)
@d2weber
d2weber requested a review from link2xt September 3, 2026 07:43
Comment thread yerpc/tests/axum.rs Outdated
Ok(())
}

use std::path::Path;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All imports are usually at the top.

@d2weber
d2weber merged commit 11a137b into chatmail:main Sep 3, 2026
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.

2 participants