data_workshop/case_test.go
2020-05-13 14:57:57 +08:00

19 lines
304 B
Go

package main
import (
"testing"
)
func TestCheck(t *testing.T) {
// firstname lastname
fn := &FirstNameList{}
SaveGobFromRocksdb("./data/firstname.gob", "firstname-", fn)
}
func TestReadData(t *testing.T) {
ln := &FirstNameList{}
LoadGob("./data/firstname.gob", ln)
t.Error(len(ln.KeyList))
}