MCPcopy
hub / github.com/coder/websocket / cloneMessages

Function cloneMessages

internal/examples/chat/chat_test.go:156–162  ·  view source on GitHub ↗
(msgs map[string]struct{})

Source from the content-addressed store, hash-verified

154}
155
156func cloneMessages(msgs map[string]struct{}) map[string]struct{} {
157 msgs2 := make(map[string]struct{}, len(msgs))
158 for m := range msgs {
159 msgs2[m] = struct{}{}
160 }
161 return msgs2
162}
163
164func randMessages(n, maxMessageLength int) map[string]struct{} {
165 msgs := make(map[string]struct{})

Callers 1

testAllMessagesReceivedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…