summaryrefslogtreecommitdiff
path: root/cmd/hexai-lsp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-08 12:02:40 +0300
committerPaul Buetow <paul@buetow.org>2025-09-08 12:02:40 +0300
commit75cf6abd55bfb60324fc47cf91eac08dbb8b87b4 (patch)
tree6ef90d8014fe4d9a757d3f7e95bf736b70e4c685 /cmd/hexai-lsp
parent0dcf347c3fbc6e4ffb7e46294f5dd92dbbcd98ef (diff)
docs: move tmux documentation to its own file
Diffstat (limited to 'cmd/hexai-lsp')
-rw-r--r--cmd/hexai-lsp/main_test.go31
1 files changed, 15 insertions, 16 deletions
diff --git a/cmd/hexai-lsp/main_test.go b/cmd/hexai-lsp/main_test.go
index 987bfb4..387b640 100644
--- a/cmd/hexai-lsp/main_test.go
+++ b/cmd/hexai-lsp/main_test.go
@@ -1,23 +1,22 @@
package main
import (
- "bytes"
- "log"
- "os"
- "testing"
+ "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")
- }
+ 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")
+ }
}
-