Skip to content

mockito: avoid generating dummy classes for ProtobufEnum subtypes and GeneratedMessage subtypes - #5011

Open
srawlins wants to merge 3 commits into
masterfrom
mockito-proto
Open

srawlins wants to merge 3 commits into
masterfrom
mockito-proto

Conversation

@srawlins

@srawlins srawlins commented Jul 9, 2026

Copy link
Copy Markdown
Member

The unnamed GeneratedMessage subtype constructor will not have side effects. The first value of a ProtobufEnum subtype will exist. This lets us generate less.

In addition, we may not be able to generate fakes for these classes, if generated subtypes of ProtobufEnum and GeneratedMessage become final. Which I have hopes for. See google/protobuf.dart#820

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

@srawlins

Copy link
Copy Markdown
Member Author

This has passed internal TGP: OCL:953037152:BASE:980842863:1789347009426:f955819d

This branch has not been deployed

No deployments
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.

1 participant