(t *testing.T)
| 143 | ) |
| 144 | |
| 145 | func 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 | |
| 179 | func TestDescribeConfigsResponseWithDefaultv0(t *testing.T) { |
| 180 | var response *DescribeConfigsResponse |
nothing calls this directly
no test coverage detected