Add test for index.Stats
This commit is contained in:
parent
d9a7a2e3a0
commit
5c7aa21643
|
@ -471,6 +471,11 @@ func TestDict(t *testing.T) {
|
|||
t.Errorf("expected %v, got %v", expectedTerms, terms)
|
||||
}
|
||||
|
||||
stats := index.Stats()
|
||||
if stats == nil {
|
||||
t.Errorf("expected IndexStat, got nil")
|
||||
}
|
||||
|
||||
err = dict.Close()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
Loading…
Reference in New Issue