Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,24 @@ jobs:
env:
CGO_ENABLED: "0"
run: go test ./tools/parity/

# The root gomeos package carries the binding's only behavioural tests:
# Example functions whose `// Output:` block is the assertion. They need
# libmeos, which this job already installs, and until now no job collected
# them -- so their expectations were never compared against MEOS at all.
# TZ is stated rather than inherited: the expectations print timestamptz
# values, so the zone is an input to the assertion.
- name: Run the gomeos package tests against the all-families libmeos
env:
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig
LD_LIBRARY_PATH: /usr/local/lib
TZ: UTC
run: go test -v . 2>&1 | tee test.log

# Refuse the two ways this suite could stop covering the binding while the
# job still reports success: a test that skips, and a suite that shrank.
- name: Refuse a skipped test, and hold the test count
uses: MobilityDB/MEOS-API/.github/actions/check-test-outcome@master
with:
log: test.log
min-tests: "115"
2 changes: 1 addition & 1 deletion example_number_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func ExampleFloatSpan_Distance() {
fmt.Println(distance, err)
// Output:
//0 <nil>
//4.625393849793197e+18 <nil>
//16.7 <nil>
}
func ExampleFloatSpan_Intersection() {
g_fs := NewFloatSpan("[1.1, 3.3]")
Expand Down
11 changes: 11 additions & 0 deletions functions/meos_meos.go
Original file line number Diff line number Diff line change
Expand Up @@ -13518,6 +13518,17 @@ func OverlapsTemporalTemporal(temp1 *Temporal, temp2 *Temporal) (_r0 bool, _err
}


// TemporalTimeOverlaps wraps MEOS C function temporal_time_overlaps.
func TemporalTimeOverlaps(temp1 *Temporal, temp2 *Temporal) (_r0 bool, _err error) {
C.meos_errno_reset()
_cret := C.temporal_time_overlaps(temp1._inner, temp2._inner)
if _err = meosError(); _err != nil {
return
}
return bool(_cret), nil
}


// OverlapsTemporalTstzspan wraps MEOS C function overlaps_temporal_tstzspan.
func OverlapsTemporalTstzspan(temp *Temporal, s *Span) (_r0 bool, _err error) {
C.meos_errno_reset()
Expand Down
11 changes: 0 additions & 11 deletions functions/meos_meos_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1376,17 +1376,6 @@ func TemporalSetTstzspan(temp *Temporal, s *Span) (_err error) {
}


// TemporalTimeOverlaps wraps MEOS C function temporal_time_overlaps.
func TemporalTimeOverlaps(temp1 *Temporal, temp2 *Temporal) (_r0 bool, _err error) {
C.meos_errno_reset()
_cret := C.temporal_time_overlaps(temp1._inner, temp2._inner)
if _err = meosError(); _err != nil {
return
}
return bool(_cret), nil
}


// TinstantSetTstzspan wraps MEOS C function tinstant_set_tstzspan.
func TinstantSetTstzspan(inst *TInstant, s *Span) (_err error) {
C.meos_errno_reset()
Expand Down
11 changes: 0 additions & 11 deletions functions/meos_meos_internal_geo.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,6 @@ func PointRound(gs *Geom, maxdd int) (_r0 *Geom, _err error) {
}


// GeoSetSRIDInt wraps MEOS C function geo_set_srid_int.
func GeoSetSRIDInt(gs *Geom, srid int32) (_err error) {
C.meos_errno_reset()
C.geo_set_srid_int(gs._inner, C.int32_t(srid))
if _err = meosError(); _err != nil {
return
}
return nil
}


// STBOXSet wraps MEOS C function stbox_set.
func STBOXSet(hasx bool, hasz bool, geodetic bool, srid int32, xmin float64, xmax float64, ymin float64, ymax float64, zmin float64, zmax float64, s *Span) (_r0 *STBox, _err error) {
var _out_result C.STBox
Expand Down
11 changes: 0 additions & 11 deletions functions/meos_meos_pointcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -1664,17 +1664,6 @@ func OverafterTpcboxTpcbox(box1 *TPCBox, box2 *TPCBox) (_r0 bool, _err error) {
}


// EnsureSamePcidTpcbox wraps MEOS C function ensure_same_pcid_tpcbox.
func EnsureSamePcidTpcbox(box1 *TPCBox, box2 *TPCBox) (_r0 bool, _err error) {
C.meos_errno_reset()
_cret := C.ensure_same_pcid_tpcbox(box1._inner, box2._inner)
if _err = meosError(); _err != nil {
return
}
return bool(_cret), nil
}


// TpointcloudToTgeompoint wraps MEOS C function tpointcloud_to_tgeompoint.
func TpointcloudToTgeompoint(temp *Temporal) (_r0 *Temporal, _err error) {
C.meos_errno_reset()
Expand Down
Loading
Loading