1
0
forked from MTSR/mapserver
mapserver/layerconfig/layerconfig_test.go

27 lines
349 B
Go
Raw Normal View History

2019-01-17 12:23:48 +03:00
package layerconfig
import (
"testing"
)
func TestReadJson(t *testing.T){
layers, err := ParseFile("./testdata/layers.json")
if err != nil {
t.Fatal(err)
}
if layers == nil {
t.Fatal("no data")
}
if len(layers) != 1 {
t.Fatal("length mismatch")
}
if layers[0].Name != "Base" {
t.Fatal("name mismatch")
}
}