-
Notifications
You must be signed in to change notification settings - Fork 149
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
[FEATURE] Improve test coverage for MLEngine Class #3675
base: main
Are you sure you want to change the base?
Conversation
Improved the test coverage by adding missed use cases. There is no zero argument constructor, constructor with Input as paremeter and constructor with MLAlgoParams.class as paremeter in the class class org.opensearch.ml.engine.algorithms.metrics_correlation.MetricsCorrelation. So it is impossible to cover remianing potions, it always throws java.lang.NoSuchMethodException: org.opensearch.ml.engine.algorithms.metrics_correlation.MetricsCorrelation.<init>(). Resolves opensearch-project#1376 Signed-off-by: Abdul Muneer Kolarkunnu <[email protected]>
Thanks for looking into this. Can we increase the branch coverage for validateMLInput method? |
No, there mainly branch coverage is missing for 'dataFrame == null' check. dataFrame is tagged as @nonnull variable. So it is an unwanted check. |
Right now all checks failed with "Unable to download artifact(s): Artifact not found for name: coverage-report-ubuntu-latest-23". |
Description
Improved the test coverage by adding missed use cases.
There is no zero argument constructor, constructor with Input as parameter and constructor with MLAlgoParams.class as parameter in the class class org.opensearch.ml.engine.algorithms.metrics_correlation.MetricsCorrelation. So it is impossible to cover remaining potions, it always throws java.lang.NoSuchMethodException: org.opensearch.ml.engine.algorithms.metrics_correlation.MetricsCorrelation.().
Related Issues
Resolves #1376
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.