-
Notifications
You must be signed in to change notification settings - Fork 132
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
Migrate reflectionEquals tests #527
Conversation
@timostamm lmk what you think about this coverage. The spec already covers a bit of the equals logic. I added a few checks on the generated code for enums, oneofs, and maps. |
const mt = new MessageType<UnknownMessage>(mi.typeName, mi.fields, mi.options); | ||
const message = reflectionCreate(mt); | ||
reflectionMergePartial(mi, message, msg); | ||
expect(true).toBeTrue(); |
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.
I hope true is always true 🙂
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.
Ack, my mistake.
@timostamm updated. I also had to remove any messages setting |
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.
LGTM
This migrates the reflection-equals tests to the
test-generated
package and removes its dependence on fixtures.