Add example test to increase coverate

This commit is contained in:
Eyal Posener 2017-05-15 23:01:05 +03:00
parent ff8cd4ed39
commit 3dd16239ee
1 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import (
"testing"
"github.com/posener/complete"
"os"
)
func TestPredictions(t *testing.T) {
@ -69,7 +70,13 @@ func TestPredictions(t *testing.T) {
}
func BenchmarkFake(b *testing.B) {}
func Example() {}
func Example() {
os.Setenv("COMP_LINE", "go ru")
main()
// output: run
}
func equal(s1, s2 []string) bool {
if len(s1) != len(s2) {