2019-02-19 22:39:39 +08:00
|
|
|
// Copyright 2018 The Gitea Authors. All rights reserved.
|
2022-11-27 13:20:29 -05:00
|
|
|
// SPDX-License-Identifier: MIT
|
2019-02-19 22:39:39 +08:00
|
|
|
|
2023-06-23 20:37:56 +08:00
|
|
|
package bleve
|
2019-02-19 22:39:39 +08:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
2023-07-31 14:28:53 +08:00
|
|
|
"code.gitea.io/gitea/modules/indexer/issues/internal/tests"
|
2019-02-19 22:39:39 +08:00
|
|
|
)
|
|
|
|
|
|
2023-07-31 14:28:53 +08:00
|
|
|
func TestBleveIndexer(t *testing.T) {
|
2022-09-04 23:14:53 +08:00
|
|
|
dir := t.TempDir()
|
2023-06-23 20:37:56 +08:00
|
|
|
indexer := NewIndexer(dir)
|
2019-12-28 02:08:05 +00:00
|
|
|
defer indexer.Close()
|
2019-02-19 22:39:39 +08:00
|
|
|
|
2023-07-31 14:28:53 +08:00
|
|
|
tests.TestIndexer(t, indexer)
|
2019-02-19 22:39:39 +08:00
|
|
|
}
|