-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
Implement getMutateFunction
in all AbstractWireSerializingTestCase
and AbstractStreamableTestCase
subclasses
#25929
Comments
getMutateFunction
in all AbstractWireSerializingTestCase
subclassesgetMutateFunction
in all AbstractWireSerializingTestCase
and AbstractStreamableTestCase
subclasses
* Adds mutate function to various tests Relates to #25929 * fix test * implements mutate function for all single bucket aggs * review comments * convert getMutateFunction to mutateIInstance
* Adds mutate function to various tests Relates to #25929 * fix test * implements mutate function for all single bucket aggs * review comments * convert getMutateFunction to mutateIInstance
* Adds mutate function to various tests Relates to #25929 * fix test * implements mutate function for all single bucket aggs * review comments * convert getMutateFunction to mutateIInstance
* Adds mutate function for all metric aggregation tests Relates to #25929 * Fixes review comments
* Adds mutate function for all metric aggregation tests Relates to #25929 * Fixes review comments
* Adds mutate function for all metric aggregation tests Relates to #25929 * Fixes review comments
* Adds mutate function for all metric aggregation tests Relates to #25929 * fixes tests * fixes review comments * Fixes cardinality equals method * Fixes scripted metric test
* Adds mutate function for all metric aggregation tests Relates to #25929 * fixes tests * fixes review comments * Fixes cardinality equals method * Fixes scripted metric test
* Adds mutate function for all metric aggregation tests Relates to #25929 * fixes tests * fixes review comments * Fixes cardinality equals method * Fixes scripted metric test
* Adds mutate method to more tests Relates to #25929 * fixes tests
* Adds mutate method to more tests Relates to #25929 * fixes tests
* Adds mutate method to more tests Relates to #25929 * fixes tests
Pinging @elastic/es-core-infra |
Should we make |
Are there new tests created since this issue was created? If so can they be added to the list in the original description? That would help guide whether they can be cutover to avoid more new instances as you suggest. |
This is the compile failures I got after trying to compile only the server module after making
|
It seems like some tests were missed in the generation of the original list. If you think you can cleanly cut these all over to to returning null so that the base method can be made abstract, it would seem worthwhile to stop more tests from being added that do not implement mutateInstance(). |
#25910 changed
AbstractWireSerializingTestCase
andAbstractStreamableTestCase
to add agetMutateFunction
method that is used when testinghashCode
andequals
to ensure that changing properties on the test instance makes it not equal to the original. At present this method defaults to returningnull
which disables the inequality checks (the equality checks are still run).We should make
getMutateFunction
abstract so we force all subclasses to implement this method and so improve test coverage. Before we can do that we need to implement the method for the ~90 classes that already extendAbstractWireSerializingTestCase
andAbstractStreamableTestCase
. This issue serves to track the implementation of the method on those classes.Subclasses of
AbstractWireSerializingTestCase
:Subclasses of
AbstractStreamableTestCase
:Cleanup
AbstractWireSerializingTestCase.mutateInstance()
abstractAbstractStreamableTestCase.mutateInstance()
abstractThe text was updated successfully, but these errors were encountered: