Documentation ¶
Index ¶
- type SuiteBase
- func (s *SuiteBase) SetIndexer(idx index.Indexer)
- func (s *SuiteBase) TestFindByID(c *gc.C)
- func (s *SuiteBase) TestIndexDocument(c *gc.C)
- func (s *SuiteBase) TestIndexDoesNotOverridePageRank(c *gc.C)
- func (s *SuiteBase) TestMatchSearch(c *gc.C)
- func (s *SuiteBase) TestMatchSearchWithOffset(c *gc.C)
- func (s *SuiteBase) TestPhraseSearch(c *gc.C)
- func (s *SuiteBase) TestUpdateScore(c *gc.C)
- func (s *SuiteBase) TestUpdateScoreForUnknownDocument(c *gc.C)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SuiteBase ¶
type SuiteBase struct {
// contains filtered or unexported fields
}
SuiteBase defines a re-usable set of index-related tests that can be executed against any type that implements index.Indexer.
func (*SuiteBase) SetIndexer ¶
SetIndexer configures the test-suite to run all tests against idx.
func (*SuiteBase) TestFindByID ¶
TestFindByID verifies the document lookup logic.
func (*SuiteBase) TestIndexDocument ¶
TestIndexDocument verifies the indexing logic for new and existing documents.
func (*SuiteBase) TestIndexDoesNotOverridePageRank ¶
TestIndexDoesNotOverridePageRank verifies the indexing logic for new and existing documents.
func (*SuiteBase) TestMatchSearch ¶
TestMatchSearch verifies the document search logic when searching for keyword matches.
func (*SuiteBase) TestMatchSearchWithOffset ¶
TestMatchSearchWithOffset verifies the document search logic when searching for keyword matches and skipping some results.
func (*SuiteBase) TestPhraseSearch ¶
TestPhraseSearch verifies the document search logic when searching for exact phrases.
func (*SuiteBase) TestUpdateScore ¶
TestUpdateScore checks that PageRank score updates work as expected.
func (*SuiteBase) TestUpdateScoreForUnknownDocument ¶
TestUpdateScoreForUnknownDocument checks that a placeholder document will be created when setting the PageRank score for an unknown document.