MCPcopy
hub / github.com/docker/docker-agent / Close

Method Close

pkg/tools/mcp/mcp_test.go:94–104  ·  view source on GitHub ↗
(context.Context)

Source from the content-addressed store, hash-verified

92}
93
94func (m *reconnectableMockClient) Close(context.Context) error {
95 m.mu.Lock()
96 defer m.mu.Unlock()
97 // Close the wait channel to unblock Wait().
98 select {
99 case <-m.waitCh:
100 default:
101 close(m.waitCh)
102 }
103 return nil
104}
105
106func TestToolsAndCallToolRoundTrip(t *testing.T) {
107 t.Parallel()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected