diff options
Diffstat (limited to 'gocomplete/tests_test.go')
| -rw-r--r-- | gocomplete/tests_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gocomplete/tests_test.go b/gocomplete/tests_test.go index b5f96dc..750147a 100644 --- a/gocomplete/tests_test.go +++ b/gocomplete/tests_test.go @@ -5,6 +5,7 @@ import ( "sort" "testing" + "bou.ke/monkey" "github.com/posener/complete/v2" ) @@ -42,6 +43,7 @@ func TestPredictions(t *testing.T) { func BenchmarkFake(b *testing.B) {} func Example() { + monkey.Patch(os.Exit, func(int) {}) os.Setenv("COMP_LINE", "go ru") os.Setenv("COMP_POINT", "5") main() |
