TzWorld.TimezoneFixtures (TzWorld v2.1.0)

Copy Markdown View Source

Coordinate fixtures used by the test suite and the benchmark.

Grouped into categories that exercise different parts of the spatial index: dense regions where many bounding boxes overlap; sparse / very large zones; small or thin zones; ocean points (no match); and points close to a polygon boundary.

Each entry is {lng, lat, expected_tzid_or_nil, label}.

Summary

Functions

All fixtures with known-good tzid (or nil for ocean/no-match).

Fixtures grouped by category, suitable for Benchee :inputs.

Generate count uniformly random (lng, lat) points. Used by the property test to compare backends on traffic the curated fixtures cannot anticipate. Pass seed for reproducibility.

Functions

all()

All fixtures with known-good tzid (or nil for ocean/no-match).

by_category()

Fixtures grouped by category, suitable for Benchee :inputs.

random_points(count, seed \\ {1, 2, 3})

Generate count uniformly random (lng, lat) points. Used by the property test to compare backends on traffic the curated fixtures cannot anticipate. Pass seed for reproducibility.