github.com/blevesearch/zapx/v13 v13.3.6
Contains an unbounded block loopDefines Go package startup initialization
SHA-256fab4f714bd75e768b898c08ba3334770bbf4e70798fe52c211a3518fb827421b
MaleculeH₂(Db₂F)
Evidence
11:48… , either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package zap
16
17import (
18 "bytes"
19 "encoding/binary"
20 "fmt"
21 "io"
22 "os"
23 "sync"
24 "unsafe"
25
26 "github.com/RoaringBitmap/roaring"
27 mmap "github.com/blevesearch/mmap-go"
28 segment "github.com/blevesearch/scorch_segment_api/v2"
29 "github.com/blevesearch/vellum"
30 "github.com/golang/snappy"
31)
32
⋯5 lines
11:48… , either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package zap
16
17import (
18 "fmt"
19 "os"
20 "reflect"
21 "sort"
22 "strings"
23 "testing"
24
25 "github.com/RoaringBitmap/roaring"
26 index "github.com/blevesearch/bleve_index_api"
27 seg "github.com/blevesearch/scorch_segment_api/v2"
28)
29
30func TestMerge(t *testing.T) {
31 _ = os.RemoveAll("/tmp/scorch.zap")
32 _ = os.RemoveAll("/tmp/scorch2.zap")
33 _ = os.RemoveAll("/tmp/scorch3.zap")
34
35 testSeg, _, _ := buildTestSegmentMulti()
36 err := PersistSegmentBase(testSeg, "/tmp/scorch.zap")
37 if err != nil {
38 t.Fatal(err)
39 }
40
⋯4 lines
289:35… nil, nil, nil)
290 bitr := bdict.AutomatonIterator(nil, nil, nil)
291 for {
292 anext, aerr := aitr.Next()
293 bnext, berr := bitr.Next()
294 if aerr != berr {
295 rv = append(rv, fmt.Sprintf("field %s, dic …
72:20… ield
73 dict, err := segment.Dictionary("_id")
74 if err != nil {
75 t.Fatal(err)
76 }
77 if dict == nil {
⋯4 lines
586:43… FieldTerms[field], string(term))
587 }, nil)
588 if err != nil {
589 t.Error(err)
590 }
591
⋯4 lines
Showing the top 5 files — 1 more file (18 regions) not shown.
No evidence locations were recorded for this file. Raw result