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)) }