elastic/elasticsearch

Share number based field mapper test code with other modules

Open

#92.947 aperta il 16 gen 2023

Vedi su GitHub
 (17 commenti) (2 reazioni) (0 assegnatari)Java (25.882 fork)batch import
:Search Foundations/Mapping>testTeam:Search Foundationsgood first issue

Metriche repository

Star
 (76.700 star)
Metriche merge PR
 (Merge medio 2g) (1000 PR mergiate in 30 g)

Descrizione

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

Guida contributor