You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2015/12/28 21:10:53 UTC
[06/16] lucy git commit: Test Go bindings for DeletionsReader.
Test Go bindings for DeletionsReader.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/bfe8a347
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/bfe8a347
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/bfe8a347
Branch: refs/heads/master
Commit: bfe8a34733ff43ecf34dc2e7523684381dbec5a9
Parents: a405c39
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Thu Dec 10 17:10:50 2015 -0800
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Thu Dec 10 18:22:54 2015 -0800
----------------------------------------------------------------------
go/lucy/index_test.go | 14 ++++++++++++++
1 file changed, 14 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/bfe8a347/go/lucy/index_test.go
----------------------------------------------------------------------
diff --git a/go/lucy/index_test.go b/go/lucy/index_test.go
index e75ede4..ebf5d25 100644
--- a/go/lucy/index_test.go
+++ b/go/lucy/index_test.go
@@ -833,3 +833,17 @@ func TestHighlightReaderMisc(t *testing.T) {
}
runDataReaderCommon(t, reader, true)
}
+
+func TestDeletionsReaderMisc(t *testing.T) {
+ folder := createTestIndex("a", "b", "c")
+ ixReader, _ := OpenIndexReader(folder, nil, nil)
+ segReaders := ixReader.SegReaders()
+ delReader := segReaders[0].Fetch("Lucy::Index::DeletionsReader").(DeletionsReader)
+ if count := delReader.delCount(); count != 0 {
+ t.Errorf("delCount: %d", count);
+ }
+ if matcher := delReader.iterator(); matcher == nil {
+ t.Errorf("iterator: %#v", matcher)
+ }
+ runDataReaderCommon(t, delReader, true)
+}