Skip to content

refactor the code to make it more maintainable

Codecov / codecov/patch failed Jun 10, 2024 in 1s

67.30% of diff hit (target 71.42%)

View this Pull Request on Codecov

67.30% of diff hit (target 71.42%)

Annotations

Check warning on line 73 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java#L72-L73

Added lines #L72 - L73 were not covered by tests

Check warning on line 79 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java#L78-L79

Added lines #L78 - L79 were not covered by tests

Check warning on line 143 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java#L142-L143

Added lines #L142 - L143 were not covered by tests

Check warning on line 168 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java#L168

Added line #L168 was not covered by tests

Check warning on line 170 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java#L170

Added line #L170 was not covered by tests

Check warning on line 174 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java#L174

Added line #L174 was not covered by tests

Check warning on line 176 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/listener/QueryInsightsListener.java#L176

Added line #L176 was not covered by tests

Check warning on line 95 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java#L94-L95

Added lines #L94 - L95 were not covered by tests

Check warning on line 240 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java#L240

Added line #L240 was not covered by tests

Check warning on line 242 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java#L242

Added line #L242 was not covered by tests

Check warning on line 252 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java#L252

Added line #L252 was not covered by tests

Check warning on line 254 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java#L254

Added line #L254 was not covered by tests

Check warning on line 221 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/TopQueriesService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/TopQueriesService.java#L221

Added line #L221 was not covered by tests

Check warning on line 230 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/TopQueriesService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/TopQueriesService.java#L230

Added line #L230 was not covered by tests

Check warning on line 85 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java#L84-L85

Added lines #L84 - L85 were not covered by tests

Check warning on line 88 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java#L87-L88

Added lines #L87 - L88 were not covered by tests

Check warning on line 110 in plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/query-insights/src/main/java/org/opensearch/plugin/insights/rules/transport/top_queries/TransportTopQueriesAction.java#L108-L110

Added lines #L108 - L110 were not covered by tests