Any complex lua transform should have tests to check expected behavior against actual behavior. For the pgsql backend an example is OpenStreetMap Carto's tests. For the multi-backend, an example is the extensive set of tests in the test-* files of cleartables.
Because flex includes complications like callbacks into osm2pgsql code, we should supply tests along with the examples.
Any complex lua transform should have tests to check expected behavior against actual behavior. For the pgsql backend an example is OpenStreetMap Carto's tests. For the multi-backend, an example is the extensive set of tests in the test-* files of cleartables.
Because flex includes complications like callbacks into osm2pgsql code, we should supply tests along with the examples.