Skip to content

Conversation

@mmiguerodriguez
Copy link
Collaborator

No description provided.

@mmiguerodriguez mmiguerodriguez marked this pull request as ready for review October 28, 2025 21:52
Copy link
Collaborator

@jgaleotti jgaleotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add test cases for the classes OpenSearchHeuristicsCalculator, ParameterExtractor and OpenSearchQueryHelper

import org.evomaster.client.java.controller.opensearch.selectors.MatchSelector;
import org.evomaster.client.java.controller.opensearch.selectors.QuerySelector;

public class OpenSearchQueryParser {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need tests for OpenSearchQueryParser to check that the JSON is correctly parsed into its corresponding OpenSearch operation.

/**
* Utility class to extract common parameters and reduce code duplication in selectors.
*/
public class ParameterExtractor {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add test cases for this class

/**
* Extracts the case_insensitive parameter from a term query object.
*/
public static Boolean extractCaseInsensitive(Object query, String structure) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add test cases for this class

@mmiguerodriguez mmiguerodriguez marked this pull request as draft October 29, 2025 18:36
@mmiguerodriguez mmiguerodriguez marked this pull request as ready for review October 29, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants