elastic/elasticsearch

Share number based field mapper test code with other modules

开放

#92,947 创建于 2023年1月16日

 (18 条评论) (2 个反应) (0 位负责人)Java (25,882 个派生)batch import
:Search Foundations/Mapping>testTeam:Search Foundationsgood first issue

仓库指标

星标
 (76,700 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Move number based field mapper test infrastructure to the test framework module. This would allow other number based field mapper to use the same test infrastructure that the core number field mappers are using.

Currently UnsignedLongFieldMapper and ScaledFloatFieldMapper have their own concrete tests, but could instead make use of NumberFieldMapperTests or WholeNumberFieldMapperTests. This avoids duplicates tests and testing logic.

Furthermore this can avoid that non core field mappers don't get forgotten when new features / behaviour is added to core field mappers.

Originates from #92917

贡献者指南