Skip to content

Add validations from appsec (#562)

Codecov / codecov/patch failed Feb 6, 2024 in 0s

83.98% of diff hit (target 84.39%)

View this Pull Request on Codecov

83.98% of diff hit (target 84.39%)

Annotations

Check warning on line 149 in src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java#L149

Added line #L149 was not covered by tests

Check warning on line 163 in src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java#L163

Added line #L163 was not covered by tests

Check warning on line 165 in src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java#L165

Added line #L165 was not covered by tests

Check warning on line 171 in src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java#L171

Added line #L171 was not covered by tests

Check warning on line 175 in src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java#L174-L175

Added lines #L174 - L175 were not covered by tests

Check warning on line 71 in src/main/java/org/opensearch/neuralsearch/processor/factory/RerankProcessorFactory.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/factory/RerankProcessorFactory.java#L71

Added line #L71 was not covered by tests

Check warning on line 90 in src/main/java/org/opensearch/neuralsearch/processor/factory/RerankProcessorFactory.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/factory/RerankProcessorFactory.java#L88-L90

Added lines #L88 - L90 were not covered by tests

Check warning on line 99 in src/main/java/org/opensearch/neuralsearch/processor/rerank/RerankProcessor.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/RerankProcessor.java#L98-L99

Added lines #L98 - L99 were not covered by tests

Check warning on line 102 in src/main/java/org/opensearch/neuralsearch/processor/rerank/RerankProcessor.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/RerankProcessor.java#L101-L102

Added lines #L101 - L102 were not covered by tests

Check warning on line 45 in src/main/java/org/opensearch/neuralsearch/processor/rerank/RerankType.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/RerankType.java#L45

Added line #L45 was not covered by tests

Check warning on line 64 in src/main/java/org/opensearch/neuralsearch/processor/rerank/RescoringRerankProcessor.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/RescoringRerankProcessor.java#L63-L64

Added lines #L63 - L64 were not covered by tests

Check warning on line 70 in src/main/java/org/opensearch/neuralsearch/processor/rerank/RescoringRerankProcessor.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/RescoringRerankProcessor.java#L70

Added line #L70 was not covered by tests

Check warning on line 115 in src/main/java/org/opensearch/neuralsearch/processor/rerank/RescoringRerankProcessor.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/RescoringRerankProcessor.java#L114-L115

Added lines #L114 - L115 were not covered by tests

Check warning on line 85 in src/main/java/org/opensearch/neuralsearch/processor/rerank/context/DocumentContextSourceFetcher.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/context/DocumentContextSourceFetcher.java#L85

Added line #L85 was not covered by tests

Check warning on line 59 in src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java#L59

Added line #L59 was not covered by tests

Check warning on line 63 in src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java#L63

Added line #L63 was not covered by tests

Check warning on line 102 in src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java#L102

Added line #L102 was not covered by tests

Check warning on line 125 in src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java#L125

Added line #L125 was not covered by tests

Check warning on line 141 in src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java#L139-L141

Added lines #L139 - L141 were not covered by tests

Check warning on line 145 in src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/main/java/org/opensearch/neuralsearch/processor/rerank/context/QueryContextSourceFetcher.java#L145

Added line #L145 was not covered by tests