forked from mirror/glob
test parallel
This commit is contained in:
parent
eb46c5146c
commit
128b789a4d
|
@ -55,8 +55,15 @@ type fakeMatcher struct {
|
||||||
func (f *fakeMatcher) Match(string) bool {
|
func (f *fakeMatcher) Match(string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var i = 3
|
||||||
|
|
||||||
func (f *fakeMatcher) Index(s string) (int, []int) {
|
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 {
|
func (f *fakeMatcher) Len() int {
|
||||||
return f.len
|
return f.len
|
||||||
|
|
Loading…
Reference in New Issue