Skip to content
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

Add more tests about generics and deduplication #13

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

tadeohepperle
Copy link
Contributor

There were some good tests about generics in the subxt/testing/integration-tests/full_client/codegen folder, see paritytech/subxt#1418, that I have ported to scale-typegen, because they are not really subxt-specific.

Question: should we introduce a deduplicate: bool = true (by default) setting to the TypegenSetting to apply utils::ensure_unique_type_paths automatically? It is easy to forget using it. But this would force us to clone the registry or use a &'a mut PortableRegistry is the TypeGenerator which would be weird...

Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link

@lexnv lexnv left a comment

Choose a reason for hiding this comment

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

Nice one!

@tadeohepperle tadeohepperle merged commit 99065e6 into master Mar 12, 2024
2 checks passed
@tadeohepperle tadeohepperle deleted the tadeohepperle/more-codegen-tests branch March 12, 2024 15:23
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.

3 participants