apache / apache/lucene

Improve random testing for GeoPointPointInPolygonQuery and DimensionalPointInPolygonQuery [LUCENE-6935]

Open
#7,993 1 comment 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Minor module:spatial type:test
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Currently `TestGeoPointQuery` and `TestDimensionalQueries` only create bounding box polygons to test `PointInPolygonQuery`. This provides coverage for testing basic functionality but lacks critical testing with true random shapes. Random shape generation needs to be added to `BaseGeoPointTestCase` and used in `newPolygonQuery` for GeoPoint and DimensionalQuery testing.

---
Migrated from [LUCENE-6935](https://issues.apache.org/jira/browse/LUCENE-6935) by Nick Knize (@nknize), updated Feb 01 2016

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.