| OLD | NEW |
| 1 library googleapis_beta.runtimeconfig.v1beta1.test; | 1 library googleapis_beta.runtimeconfig.v1beta1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 101 } |
| 102 | 102 |
| 103 checkEndCondition(api.EndCondition o) { | 103 checkEndCondition(api.EndCondition o) { |
| 104 buildCounterEndCondition++; | 104 buildCounterEndCondition++; |
| 105 if (buildCounterEndCondition < 3) { | 105 if (buildCounterEndCondition < 3) { |
| 106 checkCardinality(o.cardinality); | 106 checkCardinality(o.cardinality); |
| 107 } | 107 } |
| 108 buildCounterEndCondition--; | 108 buildCounterEndCondition--; |
| 109 } | 109 } |
| 110 | 110 |
| 111 buildUnnamed3654() { | 111 buildUnnamed3703() { |
| 112 var o = new core.List<api.RuntimeConfig>(); | 112 var o = new core.List<api.RuntimeConfig>(); |
| 113 o.add(buildRuntimeConfig()); | 113 o.add(buildRuntimeConfig()); |
| 114 o.add(buildRuntimeConfig()); | 114 o.add(buildRuntimeConfig()); |
| 115 return o; | 115 return o; |
| 116 } | 116 } |
| 117 | 117 |
| 118 checkUnnamed3654(core.List<api.RuntimeConfig> o) { | 118 checkUnnamed3703(core.List<api.RuntimeConfig> o) { |
| 119 unittest.expect(o, unittest.hasLength(2)); | 119 unittest.expect(o, unittest.hasLength(2)); |
| 120 checkRuntimeConfig(o[0]); | 120 checkRuntimeConfig(o[0]); |
| 121 checkRuntimeConfig(o[1]); | 121 checkRuntimeConfig(o[1]); |
| 122 } | 122 } |
| 123 | 123 |
| 124 core.int buildCounterListConfigsResponse = 0; | 124 core.int buildCounterListConfigsResponse = 0; |
| 125 buildListConfigsResponse() { | 125 buildListConfigsResponse() { |
| 126 var o = new api.ListConfigsResponse(); | 126 var o = new api.ListConfigsResponse(); |
| 127 buildCounterListConfigsResponse++; | 127 buildCounterListConfigsResponse++; |
| 128 if (buildCounterListConfigsResponse < 3) { | 128 if (buildCounterListConfigsResponse < 3) { |
| 129 o.configs = buildUnnamed3654(); | 129 o.configs = buildUnnamed3703(); |
| 130 o.nextPageToken = "foo"; | 130 o.nextPageToken = "foo"; |
| 131 } | 131 } |
| 132 buildCounterListConfigsResponse--; | 132 buildCounterListConfigsResponse--; |
| 133 return o; | 133 return o; |
| 134 } | 134 } |
| 135 | 135 |
| 136 checkListConfigsResponse(api.ListConfigsResponse o) { | 136 checkListConfigsResponse(api.ListConfigsResponse o) { |
| 137 buildCounterListConfigsResponse++; | 137 buildCounterListConfigsResponse++; |
| 138 if (buildCounterListConfigsResponse < 3) { | 138 if (buildCounterListConfigsResponse < 3) { |
| 139 checkUnnamed3654(o.configs); | 139 checkUnnamed3703(o.configs); |
| 140 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 140 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 141 } | 141 } |
| 142 buildCounterListConfigsResponse--; | 142 buildCounterListConfigsResponse--; |
| 143 } | 143 } |
| 144 | 144 |
| 145 buildUnnamed3655() { | 145 buildUnnamed3704() { |
| 146 var o = new core.List<api.Variable>(); | 146 var o = new core.List<api.Variable>(); |
| 147 o.add(buildVariable()); | 147 o.add(buildVariable()); |
| 148 o.add(buildVariable()); | 148 o.add(buildVariable()); |
| 149 return o; | 149 return o; |
| 150 } | 150 } |
| 151 | 151 |
| 152 checkUnnamed3655(core.List<api.Variable> o) { | 152 checkUnnamed3704(core.List<api.Variable> o) { |
| 153 unittest.expect(o, unittest.hasLength(2)); | 153 unittest.expect(o, unittest.hasLength(2)); |
| 154 checkVariable(o[0]); | 154 checkVariable(o[0]); |
| 155 checkVariable(o[1]); | 155 checkVariable(o[1]); |
| 156 } | 156 } |
| 157 | 157 |
| 158 core.int buildCounterListVariablesResponse = 0; | 158 core.int buildCounterListVariablesResponse = 0; |
| 159 buildListVariablesResponse() { | 159 buildListVariablesResponse() { |
| 160 var o = new api.ListVariablesResponse(); | 160 var o = new api.ListVariablesResponse(); |
| 161 buildCounterListVariablesResponse++; | 161 buildCounterListVariablesResponse++; |
| 162 if (buildCounterListVariablesResponse < 3) { | 162 if (buildCounterListVariablesResponse < 3) { |
| 163 o.nextPageToken = "foo"; | 163 o.nextPageToken = "foo"; |
| 164 o.variables = buildUnnamed3655(); | 164 o.variables = buildUnnamed3704(); |
| 165 } | 165 } |
| 166 buildCounterListVariablesResponse--; | 166 buildCounterListVariablesResponse--; |
| 167 return o; | 167 return o; |
| 168 } | 168 } |
| 169 | 169 |
| 170 checkListVariablesResponse(api.ListVariablesResponse o) { | 170 checkListVariablesResponse(api.ListVariablesResponse o) { |
| 171 buildCounterListVariablesResponse++; | 171 buildCounterListVariablesResponse++; |
| 172 if (buildCounterListVariablesResponse < 3) { | 172 if (buildCounterListVariablesResponse < 3) { |
| 173 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 173 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 174 checkUnnamed3655(o.variables); | 174 checkUnnamed3704(o.variables); |
| 175 } | 175 } |
| 176 buildCounterListVariablesResponse--; | 176 buildCounterListVariablesResponse--; |
| 177 } | 177 } |
| 178 | 178 |
| 179 buildUnnamed3656() { | 179 buildUnnamed3705() { |
| 180 var o = new core.List<api.Waiter>(); | 180 var o = new core.List<api.Waiter>(); |
| 181 o.add(buildWaiter()); | 181 o.add(buildWaiter()); |
| 182 o.add(buildWaiter()); | 182 o.add(buildWaiter()); |
| 183 return o; | 183 return o; |
| 184 } | 184 } |
| 185 | 185 |
| 186 checkUnnamed3656(core.List<api.Waiter> o) { | 186 checkUnnamed3705(core.List<api.Waiter> o) { |
| 187 unittest.expect(o, unittest.hasLength(2)); | 187 unittest.expect(o, unittest.hasLength(2)); |
| 188 checkWaiter(o[0]); | 188 checkWaiter(o[0]); |
| 189 checkWaiter(o[1]); | 189 checkWaiter(o[1]); |
| 190 } | 190 } |
| 191 | 191 |
| 192 core.int buildCounterListWaitersResponse = 0; | 192 core.int buildCounterListWaitersResponse = 0; |
| 193 buildListWaitersResponse() { | 193 buildListWaitersResponse() { |
| 194 var o = new api.ListWaitersResponse(); | 194 var o = new api.ListWaitersResponse(); |
| 195 buildCounterListWaitersResponse++; | 195 buildCounterListWaitersResponse++; |
| 196 if (buildCounterListWaitersResponse < 3) { | 196 if (buildCounterListWaitersResponse < 3) { |
| 197 o.nextPageToken = "foo"; | 197 o.nextPageToken = "foo"; |
| 198 o.waiters = buildUnnamed3656(); | 198 o.waiters = buildUnnamed3705(); |
| 199 } | 199 } |
| 200 buildCounterListWaitersResponse--; | 200 buildCounterListWaitersResponse--; |
| 201 return o; | 201 return o; |
| 202 } | 202 } |
| 203 | 203 |
| 204 checkListWaitersResponse(api.ListWaitersResponse o) { | 204 checkListWaitersResponse(api.ListWaitersResponse o) { |
| 205 buildCounterListWaitersResponse++; | 205 buildCounterListWaitersResponse++; |
| 206 if (buildCounterListWaitersResponse < 3) { | 206 if (buildCounterListWaitersResponse < 3) { |
| 207 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 207 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 208 checkUnnamed3656(o.waiters); | 208 checkUnnamed3705(o.waiters); |
| 209 } | 209 } |
| 210 buildCounterListWaitersResponse--; | 210 buildCounterListWaitersResponse--; |
| 211 } | 211 } |
| 212 | 212 |
| 213 buildUnnamed3657() { | 213 buildUnnamed3706() { |
| 214 var o = new core.Map<core.String, core.Object>(); | 214 var o = new core.Map<core.String, core.Object>(); |
| 215 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 215 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 216 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 216 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 217 return o; | 217 return o; |
| 218 } | 218 } |
| 219 | 219 |
| 220 checkUnnamed3657(core.Map<core.String, core.Object> o) { | 220 checkUnnamed3706(core.Map<core.String, core.Object> o) { |
| 221 unittest.expect(o, unittest.hasLength(2)); | 221 unittest.expect(o, unittest.hasLength(2)); |
| 222 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 222 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 223 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 223 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 224 } | 224 } |
| 225 | 225 |
| 226 buildUnnamed3658() { | 226 buildUnnamed3707() { |
| 227 var o = new core.Map<core.String, core.Object>(); | 227 var o = new core.Map<core.String, core.Object>(); |
| 228 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 228 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 229 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 229 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 230 return o; | 230 return o; |
| 231 } | 231 } |
| 232 | 232 |
| 233 checkUnnamed3658(core.Map<core.String, core.Object> o) { | 233 checkUnnamed3707(core.Map<core.String, core.Object> o) { |
| 234 unittest.expect(o, unittest.hasLength(2)); | 234 unittest.expect(o, unittest.hasLength(2)); |
| 235 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 235 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
| 236 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 236 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
| 237 } | 237 } |
| 238 | 238 |
| 239 core.int buildCounterOperation = 0; | 239 core.int buildCounterOperation = 0; |
| 240 buildOperation() { | 240 buildOperation() { |
| 241 var o = new api.Operation(); | 241 var o = new api.Operation(); |
| 242 buildCounterOperation++; | 242 buildCounterOperation++; |
| 243 if (buildCounterOperation < 3) { | 243 if (buildCounterOperation < 3) { |
| 244 o.done = true; | 244 o.done = true; |
| 245 o.error = buildStatus(); | 245 o.error = buildStatus(); |
| 246 o.metadata = buildUnnamed3657(); | 246 o.metadata = buildUnnamed3706(); |
| 247 o.name = "foo"; | 247 o.name = "foo"; |
| 248 o.response = buildUnnamed3658(); | 248 o.response = buildUnnamed3707(); |
| 249 } | 249 } |
| 250 buildCounterOperation--; | 250 buildCounterOperation--; |
| 251 return o; | 251 return o; |
| 252 } | 252 } |
| 253 | 253 |
| 254 checkOperation(api.Operation o) { | 254 checkOperation(api.Operation o) { |
| 255 buildCounterOperation++; | 255 buildCounterOperation++; |
| 256 if (buildCounterOperation < 3) { | 256 if (buildCounterOperation < 3) { |
| 257 unittest.expect(o.done, unittest.isTrue); | 257 unittest.expect(o.done, unittest.isTrue); |
| 258 checkStatus(o.error); | 258 checkStatus(o.error); |
| 259 checkUnnamed3657(o.metadata); | 259 checkUnnamed3706(o.metadata); |
| 260 unittest.expect(o.name, unittest.equals('foo')); | 260 unittest.expect(o.name, unittest.equals('foo')); |
| 261 checkUnnamed3658(o.response); | 261 checkUnnamed3707(o.response); |
| 262 } | 262 } |
| 263 buildCounterOperation--; | 263 buildCounterOperation--; |
| 264 } | 264 } |
| 265 | 265 |
| 266 core.int buildCounterRuntimeConfig = 0; | 266 core.int buildCounterRuntimeConfig = 0; |
| 267 buildRuntimeConfig() { | 267 buildRuntimeConfig() { |
| 268 var o = new api.RuntimeConfig(); | 268 var o = new api.RuntimeConfig(); |
| 269 buildCounterRuntimeConfig++; | 269 buildCounterRuntimeConfig++; |
| 270 if (buildCounterRuntimeConfig < 3) { | 270 if (buildCounterRuntimeConfig < 3) { |
| 271 o.description = "foo"; | 271 o.description = "foo"; |
| 272 o.name = "foo"; | 272 o.name = "foo"; |
| 273 } | 273 } |
| 274 buildCounterRuntimeConfig--; | 274 buildCounterRuntimeConfig--; |
| 275 return o; | 275 return o; |
| 276 } | 276 } |
| 277 | 277 |
| 278 checkRuntimeConfig(api.RuntimeConfig o) { | 278 checkRuntimeConfig(api.RuntimeConfig o) { |
| 279 buildCounterRuntimeConfig++; | 279 buildCounterRuntimeConfig++; |
| 280 if (buildCounterRuntimeConfig < 3) { | 280 if (buildCounterRuntimeConfig < 3) { |
| 281 unittest.expect(o.description, unittest.equals('foo')); | 281 unittest.expect(o.description, unittest.equals('foo')); |
| 282 unittest.expect(o.name, unittest.equals('foo')); | 282 unittest.expect(o.name, unittest.equals('foo')); |
| 283 } | 283 } |
| 284 buildCounterRuntimeConfig--; | 284 buildCounterRuntimeConfig--; |
| 285 } | 285 } |
| 286 | 286 |
| 287 buildUnnamed3659() { | 287 buildUnnamed3708() { |
| 288 var o = new core.Map<core.String, core.Object>(); | 288 var o = new core.Map<core.String, core.Object>(); |
| 289 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 289 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 290 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 290 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 291 return o; | 291 return o; |
| 292 } | 292 } |
| 293 | 293 |
| 294 checkUnnamed3659(core.Map<core.String, core.Object> o) { | 294 checkUnnamed3708(core.Map<core.String, core.Object> o) { |
| 295 unittest.expect(o, unittest.hasLength(2)); | 295 unittest.expect(o, unittest.hasLength(2)); |
| 296 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 296 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 297 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 297 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 298 } | 298 } |
| 299 | 299 |
| 300 buildUnnamed3660() { | 300 buildUnnamed3709() { |
| 301 var o = new core.List<core.Map<core.String, core.Object>>(); | 301 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 302 o.add(buildUnnamed3659()); | 302 o.add(buildUnnamed3708()); |
| 303 o.add(buildUnnamed3659()); | 303 o.add(buildUnnamed3708()); |
| 304 return o; | 304 return o; |
| 305 } | 305 } |
| 306 | 306 |
| 307 checkUnnamed3660(core.List<core.Map<core.String, core.Object>> o) { | 307 checkUnnamed3709(core.List<core.Map<core.String, core.Object>> o) { |
| 308 unittest.expect(o, unittest.hasLength(2)); | 308 unittest.expect(o, unittest.hasLength(2)); |
| 309 checkUnnamed3659(o[0]); | 309 checkUnnamed3708(o[0]); |
| 310 checkUnnamed3659(o[1]); | 310 checkUnnamed3708(o[1]); |
| 311 } | 311 } |
| 312 | 312 |
| 313 core.int buildCounterStatus = 0; | 313 core.int buildCounterStatus = 0; |
| 314 buildStatus() { | 314 buildStatus() { |
| 315 var o = new api.Status(); | 315 var o = new api.Status(); |
| 316 buildCounterStatus++; | 316 buildCounterStatus++; |
| 317 if (buildCounterStatus < 3) { | 317 if (buildCounterStatus < 3) { |
| 318 o.code = 42; | 318 o.code = 42; |
| 319 o.details = buildUnnamed3660(); | 319 o.details = buildUnnamed3709(); |
| 320 o.message = "foo"; | 320 o.message = "foo"; |
| 321 } | 321 } |
| 322 buildCounterStatus--; | 322 buildCounterStatus--; |
| 323 return o; | 323 return o; |
| 324 } | 324 } |
| 325 | 325 |
| 326 checkStatus(api.Status o) { | 326 checkStatus(api.Status o) { |
| 327 buildCounterStatus++; | 327 buildCounterStatus++; |
| 328 if (buildCounterStatus < 3) { | 328 if (buildCounterStatus < 3) { |
| 329 unittest.expect(o.code, unittest.equals(42)); | 329 unittest.expect(o.code, unittest.equals(42)); |
| 330 checkUnnamed3660(o.details); | 330 checkUnnamed3709(o.details); |
| 331 unittest.expect(o.message, unittest.equals('foo')); | 331 unittest.expect(o.message, unittest.equals('foo')); |
| 332 } | 332 } |
| 333 buildCounterStatus--; | 333 buildCounterStatus--; |
| 334 } | 334 } |
| 335 | 335 |
| 336 core.int buildCounterVariable = 0; | 336 core.int buildCounterVariable = 0; |
| 337 buildVariable() { | 337 buildVariable() { |
| 338 var o = new api.Variable(); | 338 var o = new api.Variable(); |
| 339 buildCounterVariable++; | 339 buildCounterVariable++; |
| 340 if (buildCounterVariable < 3) { | 340 if (buildCounterVariable < 3) { |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListWaitersResponse response) { | 1289 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListWaitersResponse response) { |
| 1290 checkListWaitersResponse(response); | 1290 checkListWaitersResponse(response); |
| 1291 }))); | 1291 }))); |
| 1292 }); | 1292 }); |
| 1293 | 1293 |
| 1294 }); | 1294 }); |
| 1295 | 1295 |
| 1296 | 1296 |
| 1297 } | 1297 } |
| 1298 | 1298 |
| OLD | NEW |