-
Notifications
You must be signed in to change notification settings - Fork 151
Add warning when implicitly casting maps/keywords to struct encode-time #413
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
base: main
Are you sure you want to change the base?
Conversation
@@ -309,6 +310,15 @@ defmodule Protobuf.EncoderTest do | |||
end | |||
end | |||
|
|||
test "gives a warning for implicitly cast structs" do | |||
warning = | |||
ExUnit.CaptureIO.capture_io(:stderr, fn -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes this test not really async-friendly anymore. Can we turn it to async: false
and leave a comment up there explaining why (and maybe a TODO to turn it back async when we remove this warning)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point, added!
Co-authored-by: Andrea Leopardi <[email protected]>
Co-authored-by: Andrea Leopardi <[email protected]>
Addresses discussion on #362.