MCPcopy
hub / github.com/rqlite/rqlite / GetMessageCount

Method GetMessageCount

cdc/cdctest/server.go:143–147  ·  view source on GitHub ↗

GetMessageCount returns the number of unique messages received by the server.

()

Source from the content-addressed store, hash-verified

141
142// GetMessageCount returns the number of unique messages received by the server.
143func (h *HTTPTestServer) GetMessageCount() int {
144 h.mu.Lock()
145 defer h.mu.Unlock()
146 return len(h.messages)
147}
148
149// CheckMessagesExist checks if messages with indices from 1 to n exist in the server's stored messages.
150// It returns true if all messages exist, false otherwise.

Callers 6

Test_CDC_SingleNodeFunction · 0.95
Test_CDC_MultiNodeFunction · 0.95
Test_Cluster_100EventsFunction · 0.95

Calls

no outgoing calls

Tested by 6

Test_CDC_SingleNodeFunction · 0.76
Test_CDC_MultiNodeFunction · 0.76
Test_Cluster_100EventsFunction · 0.76