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

Derive(ExecutionPlanValue) for enums #43

Merged
merged 10 commits into from
Dec 21, 2023

Conversation

adamchalmers
Copy link
Collaborator

@adamchalmers adamchalmers commented Dec 20, 2023

In #42 I wrote a derive macro for impl Value on a struct type. Now the macro can be used on enum types too!

@adamchalmers adamchalmers changed the title WIP Derive(ExecutionPlanValue) for enums Dec 20, 2023
@adamchalmers adamchalmers marked this pull request as draft December 20, 2023 21:10
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@ddc6a7e). Click here to learn what that means.

❗ Current head 7b126a8 differs from pull request most recent head 495112e. Consider uploading reports for the commit 495112e to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #43   +/-   ##
=======================================
  Coverage        ?   50.23%           
=======================================
  Files           ?       33           
  Lines           ?     2092           
  Branches        ?        0           
=======================================
  Hits            ?     1051           
  Misses          ?     1041           
  Partials        ?        0           
Flag Coverage Δ
unittests 50.23% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adamchalmers adamchalmers force-pushed the achalmers/derive-value-on-enum branch from f22c6ae to 3ba61f8 Compare December 20, 2023 23:26
@adamchalmers adamchalmers marked this pull request as ready for review December 20, 2023 23:26
@adamchalmers adamchalmers force-pushed the achalmers/derive-value-on-enum branch from 5e7042a to 62d13b9 Compare December 21, 2023 03:59
Using the standard enum idiom. Some(v) becomes ["some"] followed by v's parts. None becomes just ["none"]
@adamchalmers adamchalmers force-pushed the achalmers/derive-value-on-enum branch 6 times, most recently from 3c02173 to 68519ba Compare December 21, 2023 15:50
@adamchalmers adamchalmers force-pushed the achalmers/derive-value-on-enum branch from 68519ba to 71dd6e1 Compare December 21, 2023 16:01
@adamchalmers adamchalmers merged commit 70e6863 into main Dec 21, 2023
5 of 6 checks passed
@adamchalmers adamchalmers deleted the achalmers/derive-value-on-enum branch December 21, 2023 16:16
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