19 lines
304 B
Go
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))
|
||
|
}
|