Skip to content

KeywordFieldMapperTests has switch with impossible branches #88746

Closed
@pugnascotia

Description

@pugnascotia

The test class KeywordFieldMapperTests contains a switch statement with a branch that will never execute. The test uses a between(x, y) switch expression, but the 4 case is outside the randomised range. We need to fix this before #88739 can be merged. By "fix", I mean either remove the spurious case, or if we actually want it then extend the randomized range.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search Foundations/MappingIndex mappings, including merging and defining field types>testIssues or PRs that are addressing/adding testsTeam:Search FoundationsMeta label for the Search Foundations team in Elasticsearch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions