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

Function TestDescribeConfigsResponsev0

describe_configs_response_test.go:145–177  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

143)
144
145func TestDescribeConfigsResponsev0(t *testing.T) {
146 var response *DescribeConfigsResponse
147
148 response = &DescribeConfigsResponse{
149 Resources: []*ResourceResponse{},
150 }
151 testVersionDecodable(t, "empty", response, describeConfigsResponseEmpty, 0)
152 if len(response.Resources) != 0 {
153 t.Error("Expected no groups")
154 }
155
156 response = &DescribeConfigsResponse{
157 Version: 0, Resources: []*ResourceResponse{
158 {
159 ErrorCode: 0,
160 ErrorMsg: "",
161 Type: TopicResource,
162 Name: "foo",
163 Configs: []*ConfigEntry{
164 {
165 Name: "segment.ms",
166 Value: "1000",
167 ReadOnly: false,
168 Default: false,
169 Sensitive: false,
170 Source: SourceUnknown,
171 },
172 },
173 },
174 },
175 }
176 testResponse(t, "response with error", response, describeConfigsResponsePopulatedv0)
177}
178
179func TestDescribeConfigsResponseWithDefaultv0(t *testing.T) {
180 var response *DescribeConfigsResponse

Callers

nothing calls this directly

Calls 3

testVersionDecodableFunction · 0.85
testResponseFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected