-
Notifications
You must be signed in to change notification settings - Fork 624
Make FieldValue a test-only class #1208
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
Make FieldValue a test-only class #1208
Conversation
01dadbd
to
212e916
Compare
212e916
to
903a777
Compare
Codecov Report
Continue to review full report at Codecov.
|
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
@@ -37,7 +37,7 @@ | |||
* <li>They sort after all TimestampValues. With respect to other ServerTimestampValues, they sort | |||
* by their localWriteTime. | |||
*/ | |||
public final class ServerTimestampValue extends FieldValue { | |||
public final class ServerTimestampValue { |
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'm surprised this works. Is the only usage of this in UserDataWriter
?
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.
The class is only used in UserDataWriter
and ProtoValues
. isServerTimestamp()
is used in a couple other places.
@schmidt-sebastian: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
With all the prior PRs done, we now no longer need FieldValue. I moved it to a testHelpers for now to keep the diff smaller. The next step would be to remove it altogether and to return Value types from
wrap
.