summaryrefslogtreecommitdiff
path: root/tests.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests.go')
-rw-r--r--tests.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests.go b/tests.go
deleted file mode 100644
index 38fe5f1..0000000
--- a/tests.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package complete
-
-import (
- "os"
- "sync"
- "testing"
-)
-
-var once = sync.Once{}
-
-func initTests() {
- once.Do(func() {
- // Set debug environment variable so logs will be printed
- if testing.Verbose() {
- os.Setenv(envDebug, "1")
- // refresh the logger with environment variable set
- Log = getLogger()
- }
-
- // Change to tests directory for testing completion of files and directories
- err := os.Chdir("./tests")
- if err != nil {
- panic(err)
- }
- })
-}