From 128b789a4d94b6d4a0c54cf7a2e51e303195e7a9 Mon Sep 17 00:00:00 2001 From: gobwas Date: Mon, 22 Feb 2016 22:21:32 +0300 Subject: [PATCH] test parallel --- match/btree_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/match/btree_test.go b/match/btree_test.go index ba8b99b..3a96786 100644 --- a/match/btree_test.go +++ b/match/btree_test.go @@ -55,8 +55,15 @@ type fakeMatcher struct { func (f *fakeMatcher) Match(string) bool { return true } + +var i = 3 + func (f *fakeMatcher) Index(s string) (int, []int) { - return 0, []int{1} + seg := make([]int, 0, i) + for x := 0; x < i; x++ { + seg = append(seg, x) + } + return 0, seg } func (f *fakeMatcher) Len() int { return f.len