MCPcopy
hub / github.com/hashicorp/memberlist / getMessages

Method getMessages

memberlist_test.go:99–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func (m *MockDelegate) getMessages() [][]byte {
100 m.mu.Lock()
101 defer m.mu.Unlock()
102
103 out := make([][]byte, len(m.msgs))
104 for i, msg := range m.msgs {
105 out[i] = make([]byte, len(msg))
106 copy(out[i], msg)
107 }
108 return out
109}
110
111func (m *MockDelegate) NodeMeta(limit int) []byte {
112 m.mu.Lock()

Callers 3

TestTransport_SendFunction · 0.95
TestMemberlist_UserDataFunction · 0.80
TestMemberlist_SendToFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected