MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestHandler_Shutdown

Function TestHandler_Shutdown

pkg/lsp/server_test.go:165–178  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

163}
164
165func TestHandler_Shutdown(t *testing.T) {
166 mock := newMockReadWriter()
167 logger := log.New(io.Discard, "", 0)
168 server := NewServer(mock.input, mock.output, logger)
169
170 result, err := server.handler.HandleRequest("shutdown", nil)
171 if err != nil {
172 t.Fatalf("shutdown failed: %v", err)
173 }
174
175 if result == nil {
176 t.Fatal("expected shutdown result")
177 }
178}
179
180func TestHandler_DidOpen(t *testing.T) {
181 mock := newMockReadWriter()

Callers

nothing calls this directly

Calls 4

newMockReadWriterFunction · 0.85
NewServerFunction · 0.85
HandleRequestMethod · 0.80
FatalfMethod · 0.65

Tested by

no test coverage detected