MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / handle

Method handle

internal/nodehub/hub_test.go:121–125  ·  view source on GitHub ↗
(method string, fn func(reqID string, body []byte) (ok bool, respBody []byte, errStr string))

Source from the content-addressed store, hash-verified

119}
120
121func (m *nodeMock) handle(method string, fn func(reqID string, body []byte) (ok bool, respBody []byte, errStr string)) {
122 m.mu.Lock()
123 defer m.mu.Unlock()
124 m.handlers[method] = fn
125}
126
127func (m *nodeMock) recvLoop() {
128 defer close(m.done)

Callers 5

TestSnapshot_BasicCountsFunction · 0.45
TestCallStream_LogFramesFunction · 0.45
TestCall_SuccessFunction · 0.45
TestCall_ConcurrentFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected