diff options
Diffstat (limited to 'cmd/hexai-lsp/main_test.go')
| -rw-r--r-- | cmd/hexai-lsp/main_test.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/cmd/hexai-lsp/main_test.go b/cmd/hexai-lsp/main_test.go deleted file mode 100644 index 387b640..0000000 --- a/cmd/hexai-lsp/main_test.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "bytes" - "log" - "os" - "testing" -) - -func TestMain_Version(t *testing.T) { - oldArgs := os.Args - defer func() { os.Args = oldArgs }() - os.Args = []string{"hexai-lsp", "-version"} - var buf bytes.Buffer - old := log.Writer() - log.SetOutput(&buf) - defer log.SetOutput(old) - main() - if buf.Len() == 0 { - t.Fatalf("expected version log") - } -} |
