0
0
Fork 0

Add test for index.Stats

This commit is contained in:
Sathyanarayanan Gunasekaran 2015-03-12 17:41:09 -04:00
parent d9a7a2e3a0
commit 5c7aa21643
1 changed files with 5 additions and 0 deletions

View File

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