crushkv/crushmap/json_test.go

21 lines
254 B
Go
Raw Permalink Normal View History

package crushmap
import (
"io/ioutil"
"testing"
)
func TestJson(t *testing.T) {
buf, err := ioutil.ReadFile("testdata/map.json")
if err != nil {
t.Fatal(err)
}
m := NewMap()
err = m.DecodeJson(buf)
if err != nil {
t.Fatal(err)
}
_ = m
}