summaryrefslogtreecommitdiff
path: root/gocomplete/tests.go
diff options
context:
space:
mode:
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
}