@Test
  void testLineStringDegenerateWhenUnscaled() throws Exception {
    double x1 = 0.5 + Z12_WIDTH / 2;
    double y1 = 0.5 + Z12_WIDTH / 2;
    double x2 = x1 + Z12_WIDTH / 4096 / 3;
    double y2 = y1 + Z12_WIDTH / 4096 / 3;
    double lat1 = GeoUtils.getWorldLat(y1);
    double lng1 = GeoUtils.getWorldLon(x1);
    double lat2 = GeoUtils.getWorldLat(y2);
    double lng2 = GeoUtils.getWorldLon(x2);

    var results = runWithReaderFeatures(
      Map.of("threads", "1"),
      List.of(
        newReaderFeature(newLineString(lng1, lat1, lng2, lat2), Map.of(
          "attr", "value"
        ))
      ),
      (in, features) -> features.line("layer")
        .setZoomRange(12, 12)
        .setMinPixelSize(0)
        .setBufferPixels(4)
    );

    assertSubmap(Map.of(), results.tiles);
  }
In-memory tests with fake data and profiles to ensure all features work end-to-end.
planetiler-core/src/test/java/com/onthegomap/planetiler/PlanetilerTests.java