(t *testing.T)
| 178 | ) |
| 179 | |
| 180 | func 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 | |
| 192 | func TestMetadataResponseWithBrokersV0(t *testing.T) { |
| 193 | response := MetadataResponse{} |
nothing calls this directly
no test coverage detected