MCPcopy
hub / github.com/IBM/sarama / TestEmptyMetadataResponseV0

Function TestEmptyMetadataResponseV0

metadata_response_test.go:180–190  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

178)
179
180func TestEmptyMetadataResponseV0(t *testing.T) {
181 response := MetadataResponse{}
182
183 testVersionDecodable(t, "empty, V0", &response, emptyMetadataResponseV0, 0)
184 if len(response.Brokers) != 0 {
185 t.Error("Decoding produced", len(response.Brokers), "brokers where there were none!")
186 }
187 if len(response.Topics) != 0 {
188 t.Error("Decoding produced", len(response.Topics), "topics where there were none!")
189 }
190}
191
192func TestMetadataResponseWithBrokersV0(t *testing.T) {
193 response := MetadataResponse{}

Callers

nothing calls this directly

Calls 2

testVersionDecodableFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected