Skip to content

Add more tests about generics and deduplication#13

Merged
tadeohepperle merged 3 commits intomasterfrom
tadeohepperle/more-codegen-tests
Mar 12, 2024
Merged

Add more tests about generics and deduplication#13
tadeohepperle merged 3 commits intomasterfrom
tadeohepperle/more-codegen-tests

Conversation

@tadeohepperle
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

@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
@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