test parallel

This commit is contained in:
gobwas 2016-02-22 22:21:32 +03:00
parent eb46c5146c
commit 128b789a4d
1 changed files with 8 additions and 1 deletions

View File

@ -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