summaryrefslogtreecommitdiff
path: root/gocomplete/tests.go
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2017-05-07 19:53:55 +0300
committerEyal Posener <[email protected]>2017-05-07 19:57:41 +0300
commit6fb4875efa1f536813da29972a0c3250bde8b5eb (patch)
treec7ee97d75ed8d1d6c734256e3ff789402571bcca /gocomplete/tests.go
parente8f6dfad584cb1e3082bc7ea82f8c0551dd944b3 (diff)
Move match to a separate package
Diffstat (limited to 'gocomplete/tests.go')
-rw-r--r--gocomplete/tests.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/gocomplete/tests.go b/gocomplete/tests.go
index 3a6a185..905c5dc 100644
--- a/gocomplete/tests.go
+++ b/gocomplete/tests.go
@@ -9,14 +9,15 @@ import (
"strings"
"github.com/posener/complete"
+ "github.com/posener/complete/match"
)
func predictTest(testType string) complete.Predicate {
- return func(last string) []complete.Matcher {
+ return func(last string) []match.Matcher {
tests := testNames(testType)
- options := make([]complete.Matcher, len(tests))
+ options := make([]match.Matcher, len(tests))
for i := range tests {
- options[i] = complete.MatchPrefix(tests[i])
+ options[i] = match.Prefix(tests[i])
}
return options
}