Skip to content

Commit

Permalink
chore: add empty pg table test (#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik authored Mar 17, 2024
1 parent 3a53055 commit b28dae4
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/expected/auto/catalog_auto.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@
"content_type": "application/x-protobuf",
"description": "public.points3857.geom"
},
"points_empty": {
"content_type": "application/x-protobuf",
"description": "public.points_empty.geom"
},
"points_empty_srid": {
"content_type": "application/x-protobuf",
"description": "public.points_empty_srid.geom"
Expand Down
8 changes: 8 additions & 0 deletions tests/expected/auto/save_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ postgres:
geometry_type: POINT
properties:
gid: int4
points_empty:
schema: public
table: points_empty
srid: 900913
geometry_column: geom
geometry_type: GEOMETRY
properties:
gid: int4
points_empty_srid:
schema: public
table: points_empty_srid
Expand Down
8 changes: 8 additions & 0 deletions tests/expected/martin-cp/flat-with-hash_save_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ postgres:
geometry_type: POINT
properties:
gid: int4
points_empty:
schema: public
table: points_empty
srid: 900913
geometry_column: geom
geometry_type: GEOMETRY
properties:
gid: int4
points_empty_srid:
schema: public
table: points_empty_srid
Expand Down
8 changes: 8 additions & 0 deletions tests/expected/martin-cp/flat_save_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ postgres:
geometry_type: POINT
properties:
gid: int4
points_empty:
schema: public
table: points_empty
srid: 900913
geometry_column: geom
geometry_type: GEOMETRY
properties:
gid: int4
points_empty_srid:
schema: public
table: points_empty_srid
Expand Down
8 changes: 8 additions & 0 deletions tests/expected/martin-cp/normalized_save_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ postgres:
geometry_type: POINT
properties:
gid: int4
points_empty:
schema: public
table: points_empty
srid: 900913
geometry_column: geom
geometry_type: GEOMETRY
properties:
gid: int4
points_empty_srid:
schema: public
table: points_empty_srid
Expand Down
Binary file modified tests/fixtures/sprites/expected/all_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/fixtures/sprites/expected/all_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/fixtures/sprites/expected/src1_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/fixtures/sprites/expected/src2_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/fixtures/sprites/expected/src2_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions tests/fixtures/tables/points_empty.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- This table is intentionally left empty
CREATE TABLE points_empty
(
gid SERIAL PRIMARY KEY,
geom GEOMETRY
);

CREATE INDEX ON points_empty USING GIST (geom);
CLUSTER points_empty_geom_idx ON points_empty;

0 comments on commit b28dae4

Please sign in to comment.