testing/

directory
v0.0.0-...-3cd2f5a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2022 License: MIT

README

testing

This package contains functions and variables for using pre made geometries.

The tile variables are very large and are initially stored as strings. In order to access them, you must first compile compile them by calling CompileTiles. Once compiled, access the tiles via the Tiles function (this does no processing besides endusring that compilation has already occured).

package my_test

import (
    "github.com/go-spatial/geom/encoding/wkt"
    gtesting "github.com/go-spatial/testing"
)

func init {
    // put this in init so benchmarks aren't skewed
    gtesting.CompileTiles(wkt.DecodeString)
}

func TestMy(t *testing) {
    tiles := gtesting.Tiles()
    ...
}

Directories

Path Synopsis
Package must provides helpers to decode wkt geometries to be used in tests
Package must provides helpers to decode wkt geometries to be used in tests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL