Expectation API SetTopicMetadata sets the clusters topic/partition metadata, which will be returned by Topics() and Partitions().
(metadata map[string][]int32)
| 194 | // SetTopicMetadata sets the clusters topic/partition metadata, |
| 195 | // which will be returned by Topics() and Partitions(). |
| 196 | func (c *Consumer) SetTopicMetadata(metadata map[string][]int32) { |
| 197 | c.l.Lock() |
| 198 | defer c.l.Unlock() |
| 199 | |
| 200 | c.metadata = metadata |
| 201 | } |
| 202 | |
| 203 | // ExpectConsumePartition will register a topic/partition, so you can set expectations on it. |
| 204 | // The registered PartitionConsumer will be returned, so you can set expectations |
no outgoing calls