Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .ci/compose-unit.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
services:
tests:
image: golang:1.18
build:
context: .
dockerfile: unit.Dockerfile
working_dir: /go/src/github.com/peterstace/simplefeatures
entrypoint: >-
go test -covermode=count -coverpkg=./... -coverprofile=coverage.out -test.count=1 -test.run=.
./carto
./geom
./internal/jts/...
./internal/jtsport/...
./rtree
volumes:
Expand Down
8 changes: 8 additions & 0 deletions .ci/unit.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM golang:1.18

# The internal/jts oracle tests compare the JTS translation with JTS itself,
# which needs a JDK. The version matches the one the runtime's JDK test
# vectors come from.
COPY --from=eclipse-temurin:21.0.9_10-jdk /opt/java/openjdk /opt/java/openjdk
ENV JAVA_HOME=/opt/java/openjdk
ENV PATH=$JAVA_HOME/bin:$PATH
13 changes: 13 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ run:
timeout: 5m
skip-dirs:
- internal/jtsport/jts
- internal/jts$ # Generated by internal/jts/tools/translator.

issues:
exclude-rules:
Expand All @@ -20,6 +21,18 @@ issues:
linters:
- asciicheck

# The JTS runtime's names are dictated by the code generated from Java
# (Math_abs_double, Add_Object, and so on), and its methods use "this" as
# the receiver, as the generated code and the Java it ports do.
- path: internal/jts/(java|junit)/
text: "(var-naming|receiver-naming):"
linters:
- revive
- path: internal/jts/(java|junit)/
text: "(ST1003|ST1006):"
linters:
- stylecheck

linters-settings:
depguard:
rules:
Expand Down
75 changes: 75 additions & 0 deletions internal/jts/AlgorithmConstruct_IndexedDistanceToPoint.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions internal/jts/AlgorithmConstruct_IndexedPointInPolygonsLocator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading