GetMessageCount returns the number of unique messages received by the server.
()
| 141 | |
| 142 | // GetMessageCount returns the number of unique messages received by the server. |
| 143 | func (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. |
no outgoing calls