-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dimitris/structured-enums' into 'master'
test: Add protobuf round trip tests for some structured enums This MR adds some protobuf round trip tests for structured enums using the `ExhaustiveSet` derive to produce a list of possible values. It's done for the ones that are in the `ic_types` (unless if they are using named field variants which is not supported yet -- will be added later). There are also a few cases of enums that live outside the `ic_types` crate. This is an issue in general because we cannot have this `derive(ExhaustiveSet)` be a `cfg_attr(test)` unless everything is in the same crate (if we move it to its own crate, then we could depend on it but through production code, so these macros would expand there are well). There are some cases which we cannot move (e.g. types in the more specific `ic_management_canister_types` crate) but some others could be moved (e.g. that are currently in `ic_replicated_state`) and we can follow up for them in another MR. See merge request dfinity-lab/public/ic!19034
- Loading branch information
Showing
4 changed files
with
88 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters