| OLD | NEW |
| 1 library googleapis.dataproc.v1.test; | 1 library googleapis.dataproc.v1beta2.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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| 11 | 11 |
| 12 import 'package:googleapis/dataproc/v1.dart' as api; | 12 import 'package:googleapis/dataproc/v1beta2.dart' as api; |
| 13 | 13 |
| 14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; | 15 core.Function _callback; |
| 16 core.bool _expectJson; | 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; | 19 _callback = callback; |
| 20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 return o; | 82 return o; |
| 83 } | 83 } |
| 84 | 84 |
| 85 checkCancelJobRequest(api.CancelJobRequest o) { | 85 checkCancelJobRequest(api.CancelJobRequest o) { |
| 86 buildCounterCancelJobRequest++; | 86 buildCounterCancelJobRequest++; |
| 87 if (buildCounterCancelJobRequest < 3) { | 87 if (buildCounterCancelJobRequest < 3) { |
| 88 } | 88 } |
| 89 buildCounterCancelJobRequest--; | 89 buildCounterCancelJobRequest--; |
| 90 } | 90 } |
| 91 | 91 |
| 92 buildUnnamed456() { | 92 buildUnnamed54() { |
| 93 var o = new core.Map<core.String, core.String>(); | 93 var o = new core.Map<core.String, core.String>(); |
| 94 o["x"] = "foo"; | 94 o["x"] = "foo"; |
| 95 o["y"] = "foo"; | 95 o["y"] = "foo"; |
| 96 return o; | 96 return o; |
| 97 } | 97 } |
| 98 | 98 |
| 99 checkUnnamed456(core.Map<core.String, core.String> o) { | 99 checkUnnamed54(core.Map<core.String, core.String> o) { |
| 100 unittest.expect(o, unittest.hasLength(2)); | 100 unittest.expect(o, unittest.hasLength(2)); |
| 101 unittest.expect(o["x"], unittest.equals('foo')); | 101 unittest.expect(o["x"], unittest.equals('foo')); |
| 102 unittest.expect(o["y"], unittest.equals('foo')); | 102 unittest.expect(o["y"], unittest.equals('foo')); |
| 103 } | 103 } |
| 104 | 104 |
| 105 buildUnnamed457() { | 105 buildUnnamed55() { |
| 106 var o = new core.List<api.ClusterStatus>(); | 106 var o = new core.List<api.ClusterStatus>(); |
| 107 o.add(buildClusterStatus()); | 107 o.add(buildClusterStatus()); |
| 108 o.add(buildClusterStatus()); | 108 o.add(buildClusterStatus()); |
| 109 return o; | 109 return o; |
| 110 } | 110 } |
| 111 | 111 |
| 112 checkUnnamed457(core.List<api.ClusterStatus> o) { | 112 checkUnnamed55(core.List<api.ClusterStatus> o) { |
| 113 unittest.expect(o, unittest.hasLength(2)); | 113 unittest.expect(o, unittest.hasLength(2)); |
| 114 checkClusterStatus(o[0]); | 114 checkClusterStatus(o[0]); |
| 115 checkClusterStatus(o[1]); | 115 checkClusterStatus(o[1]); |
| 116 } | 116 } |
| 117 | 117 |
| 118 core.int buildCounterCluster = 0; | 118 core.int buildCounterCluster = 0; |
| 119 buildCluster() { | 119 buildCluster() { |
| 120 var o = new api.Cluster(); | 120 var o = new api.Cluster(); |
| 121 buildCounterCluster++; | 121 buildCounterCluster++; |
| 122 if (buildCounterCluster < 3) { | 122 if (buildCounterCluster < 3) { |
| 123 o.clusterName = "foo"; | 123 o.clusterName = "foo"; |
| 124 o.clusterUuid = "foo"; | 124 o.clusterUuid = "foo"; |
| 125 o.config = buildClusterConfig(); | 125 o.config = buildClusterConfig(); |
| 126 o.labels = buildUnnamed456(); | 126 o.labels = buildUnnamed54(); |
| 127 o.metrics = buildClusterMetrics(); | 127 o.metrics = buildClusterMetrics(); |
| 128 o.projectId = "foo"; | 128 o.projectId = "foo"; |
| 129 o.status = buildClusterStatus(); | 129 o.status = buildClusterStatus(); |
| 130 o.statusHistory = buildUnnamed457(); | 130 o.statusHistory = buildUnnamed55(); |
| 131 } | 131 } |
| 132 buildCounterCluster--; | 132 buildCounterCluster--; |
| 133 return o; | 133 return o; |
| 134 } | 134 } |
| 135 | 135 |
| 136 checkCluster(api.Cluster o) { | 136 checkCluster(api.Cluster o) { |
| 137 buildCounterCluster++; | 137 buildCounterCluster++; |
| 138 if (buildCounterCluster < 3) { | 138 if (buildCounterCluster < 3) { |
| 139 unittest.expect(o.clusterName, unittest.equals('foo')); | 139 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 140 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 140 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 141 checkClusterConfig(o.config); | 141 checkClusterConfig(o.config); |
| 142 checkUnnamed456(o.labels); | 142 checkUnnamed54(o.labels); |
| 143 checkClusterMetrics(o.metrics); | 143 checkClusterMetrics(o.metrics); |
| 144 unittest.expect(o.projectId, unittest.equals('foo')); | 144 unittest.expect(o.projectId, unittest.equals('foo')); |
| 145 checkClusterStatus(o.status); | 145 checkClusterStatus(o.status); |
| 146 checkUnnamed457(o.statusHistory); | 146 checkUnnamed55(o.statusHistory); |
| 147 } | 147 } |
| 148 buildCounterCluster--; | 148 buildCounterCluster--; |
| 149 } | 149 } |
| 150 | 150 |
| 151 buildUnnamed458() { | 151 buildUnnamed56() { |
| 152 var o = new core.List<api.NodeInitializationAction>(); | 152 var o = new core.List<api.NodeInitializationAction>(); |
| 153 o.add(buildNodeInitializationAction()); | 153 o.add(buildNodeInitializationAction()); |
| 154 o.add(buildNodeInitializationAction()); | 154 o.add(buildNodeInitializationAction()); |
| 155 return o; | 155 return o; |
| 156 } | 156 } |
| 157 | 157 |
| 158 checkUnnamed458(core.List<api.NodeInitializationAction> o) { | 158 checkUnnamed56(core.List<api.NodeInitializationAction> o) { |
| 159 unittest.expect(o, unittest.hasLength(2)); | 159 unittest.expect(o, unittest.hasLength(2)); |
| 160 checkNodeInitializationAction(o[0]); | 160 checkNodeInitializationAction(o[0]); |
| 161 checkNodeInitializationAction(o[1]); | 161 checkNodeInitializationAction(o[1]); |
| 162 } | 162 } |
| 163 | 163 |
| 164 core.int buildCounterClusterConfig = 0; | 164 core.int buildCounterClusterConfig = 0; |
| 165 buildClusterConfig() { | 165 buildClusterConfig() { |
| 166 var o = new api.ClusterConfig(); | 166 var o = new api.ClusterConfig(); |
| 167 buildCounterClusterConfig++; | 167 buildCounterClusterConfig++; |
| 168 if (buildCounterClusterConfig < 3) { | 168 if (buildCounterClusterConfig < 3) { |
| 169 o.configBucket = "foo"; | 169 o.configBucket = "foo"; |
| 170 o.gceClusterConfig = buildGceClusterConfig(); | 170 o.gceClusterConfig = buildGceClusterConfig(); |
| 171 o.initializationActions = buildUnnamed458(); | 171 o.initializationActions = buildUnnamed56(); |
| 172 o.masterConfig = buildInstanceGroupConfig(); | 172 o.masterConfig = buildInstanceGroupConfig(); |
| 173 o.secondaryWorkerConfig = buildInstanceGroupConfig(); | 173 o.secondaryWorkerConfig = buildInstanceGroupConfig(); |
| 174 o.softwareConfig = buildSoftwareConfig(); | 174 o.softwareConfig = buildSoftwareConfig(); |
| 175 o.workerConfig = buildInstanceGroupConfig(); | 175 o.workerConfig = buildInstanceGroupConfig(); |
| 176 } | 176 } |
| 177 buildCounterClusterConfig--; | 177 buildCounterClusterConfig--; |
| 178 return o; | 178 return o; |
| 179 } | 179 } |
| 180 | 180 |
| 181 checkClusterConfig(api.ClusterConfig o) { | 181 checkClusterConfig(api.ClusterConfig o) { |
| 182 buildCounterClusterConfig++; | 182 buildCounterClusterConfig++; |
| 183 if (buildCounterClusterConfig < 3) { | 183 if (buildCounterClusterConfig < 3) { |
| 184 unittest.expect(o.configBucket, unittest.equals('foo')); | 184 unittest.expect(o.configBucket, unittest.equals('foo')); |
| 185 checkGceClusterConfig(o.gceClusterConfig); | 185 checkGceClusterConfig(o.gceClusterConfig); |
| 186 checkUnnamed458(o.initializationActions); | 186 checkUnnamed56(o.initializationActions); |
| 187 checkInstanceGroupConfig(o.masterConfig); | 187 checkInstanceGroupConfig(o.masterConfig); |
| 188 checkInstanceGroupConfig(o.secondaryWorkerConfig); | 188 checkInstanceGroupConfig(o.secondaryWorkerConfig); |
| 189 checkSoftwareConfig(o.softwareConfig); | 189 checkSoftwareConfig(o.softwareConfig); |
| 190 checkInstanceGroupConfig(o.workerConfig); | 190 checkInstanceGroupConfig(o.workerConfig); |
| 191 } | 191 } |
| 192 buildCounterClusterConfig--; | 192 buildCounterClusterConfig--; |
| 193 } | 193 } |
| 194 | 194 |
| 195 buildUnnamed459() { | 195 buildUnnamed57() { |
| 196 var o = new core.Map<core.String, core.String>(); | 196 var o = new core.Map<core.String, core.String>(); |
| 197 o["x"] = "foo"; | 197 o["x"] = "foo"; |
| 198 o["y"] = "foo"; | 198 o["y"] = "foo"; |
| 199 return o; | 199 return o; |
| 200 } | 200 } |
| 201 | 201 |
| 202 checkUnnamed459(core.Map<core.String, core.String> o) { | 202 checkUnnamed57(core.Map<core.String, core.String> o) { |
| 203 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
| 204 unittest.expect(o["x"], unittest.equals('foo')); | 204 unittest.expect(o["x"], unittest.equals('foo')); |
| 205 unittest.expect(o["y"], unittest.equals('foo')); | 205 unittest.expect(o["y"], unittest.equals('foo')); |
| 206 } | 206 } |
| 207 | 207 |
| 208 buildUnnamed460() { | 208 buildUnnamed58() { |
| 209 var o = new core.Map<core.String, core.String>(); | 209 var o = new core.Map<core.String, core.String>(); |
| 210 o["x"] = "foo"; | 210 o["x"] = "foo"; |
| 211 o["y"] = "foo"; | 211 o["y"] = "foo"; |
| 212 return o; | 212 return o; |
| 213 } | 213 } |
| 214 | 214 |
| 215 checkUnnamed460(core.Map<core.String, core.String> o) { | 215 checkUnnamed58(core.Map<core.String, core.String> o) { |
| 216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
| 217 unittest.expect(o["x"], unittest.equals('foo')); | 217 unittest.expect(o["x"], unittest.equals('foo')); |
| 218 unittest.expect(o["y"], unittest.equals('foo')); | 218 unittest.expect(o["y"], unittest.equals('foo')); |
| 219 } | 219 } |
| 220 | 220 |
| 221 core.int buildCounterClusterMetrics = 0; | 221 core.int buildCounterClusterMetrics = 0; |
| 222 buildClusterMetrics() { | 222 buildClusterMetrics() { |
| 223 var o = new api.ClusterMetrics(); | 223 var o = new api.ClusterMetrics(); |
| 224 buildCounterClusterMetrics++; | 224 buildCounterClusterMetrics++; |
| 225 if (buildCounterClusterMetrics < 3) { | 225 if (buildCounterClusterMetrics < 3) { |
| 226 o.hdfsMetrics = buildUnnamed459(); | 226 o.hdfsMetrics = buildUnnamed57(); |
| 227 o.yarnMetrics = buildUnnamed460(); | 227 o.yarnMetrics = buildUnnamed58(); |
| 228 } | 228 } |
| 229 buildCounterClusterMetrics--; | 229 buildCounterClusterMetrics--; |
| 230 return o; | 230 return o; |
| 231 } | 231 } |
| 232 | 232 |
| 233 checkClusterMetrics(api.ClusterMetrics o) { | 233 checkClusterMetrics(api.ClusterMetrics o) { |
| 234 buildCounterClusterMetrics++; | 234 buildCounterClusterMetrics++; |
| 235 if (buildCounterClusterMetrics < 3) { | 235 if (buildCounterClusterMetrics < 3) { |
| 236 checkUnnamed459(o.hdfsMetrics); | 236 checkUnnamed57(o.hdfsMetrics); |
| 237 checkUnnamed460(o.yarnMetrics); | 237 checkUnnamed58(o.yarnMetrics); |
| 238 } | 238 } |
| 239 buildCounterClusterMetrics--; | 239 buildCounterClusterMetrics--; |
| 240 } | 240 } |
| 241 | 241 |
| 242 buildUnnamed461() { | 242 buildUnnamed59() { |
| 243 var o = new core.Map<core.String, core.String>(); | 243 var o = new core.Map<core.String, core.String>(); |
| 244 o["x"] = "foo"; | 244 o["x"] = "foo"; |
| 245 o["y"] = "foo"; | 245 o["y"] = "foo"; |
| 246 return o; | 246 return o; |
| 247 } | 247 } |
| 248 | 248 |
| 249 checkUnnamed461(core.Map<core.String, core.String> o) { | 249 checkUnnamed59(core.Map<core.String, core.String> o) { |
| 250 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
| 251 unittest.expect(o["x"], unittest.equals('foo')); | 251 unittest.expect(o["x"], unittest.equals('foo')); |
| 252 unittest.expect(o["y"], unittest.equals('foo')); | 252 unittest.expect(o["y"], unittest.equals('foo')); |
| 253 } | 253 } |
| 254 | 254 |
| 255 buildUnnamed462() { | 255 buildUnnamed60() { |
| 256 var o = new core.List<api.ClusterOperationStatus>(); | 256 var o = new core.List<api.ClusterOperationStatus>(); |
| 257 o.add(buildClusterOperationStatus()); | 257 o.add(buildClusterOperationStatus()); |
| 258 o.add(buildClusterOperationStatus()); | 258 o.add(buildClusterOperationStatus()); |
| 259 return o; | 259 return o; |
| 260 } | 260 } |
| 261 | 261 |
| 262 checkUnnamed462(core.List<api.ClusterOperationStatus> o) { | 262 checkUnnamed60(core.List<api.ClusterOperationStatus> o) { |
| 263 unittest.expect(o, unittest.hasLength(2)); | 263 unittest.expect(o, unittest.hasLength(2)); |
| 264 checkClusterOperationStatus(o[0]); | 264 checkClusterOperationStatus(o[0]); |
| 265 checkClusterOperationStatus(o[1]); | 265 checkClusterOperationStatus(o[1]); |
| 266 } | 266 } |
| 267 | 267 |
| 268 buildUnnamed463() { | 268 buildUnnamed61() { |
| 269 var o = new core.List<core.String>(); | 269 var o = new core.List<core.String>(); |
| 270 o.add("foo"); | 270 o.add("foo"); |
| 271 o.add("foo"); | 271 o.add("foo"); |
| 272 return o; | 272 return o; |
| 273 } | 273 } |
| 274 | 274 |
| 275 checkUnnamed463(core.List<core.String> o) { | 275 checkUnnamed61(core.List<core.String> o) { |
| 276 unittest.expect(o, unittest.hasLength(2)); | 276 unittest.expect(o, unittest.hasLength(2)); |
| 277 unittest.expect(o[0], unittest.equals('foo')); | 277 unittest.expect(o[0], unittest.equals('foo')); |
| 278 unittest.expect(o[1], unittest.equals('foo')); | 278 unittest.expect(o[1], unittest.equals('foo')); |
| 279 } | 279 } |
| 280 | 280 |
| 281 core.int buildCounterClusterOperationMetadata = 0; | 281 core.int buildCounterClusterOperationMetadata = 0; |
| 282 buildClusterOperationMetadata() { | 282 buildClusterOperationMetadata() { |
| 283 var o = new api.ClusterOperationMetadata(); | 283 var o = new api.ClusterOperationMetadata(); |
| 284 buildCounterClusterOperationMetadata++; | 284 buildCounterClusterOperationMetadata++; |
| 285 if (buildCounterClusterOperationMetadata < 3) { | 285 if (buildCounterClusterOperationMetadata < 3) { |
| 286 o.clusterName = "foo"; | 286 o.clusterName = "foo"; |
| 287 o.clusterUuid = "foo"; | 287 o.clusterUuid = "foo"; |
| 288 o.description = "foo"; | 288 o.description = "foo"; |
| 289 o.labels = buildUnnamed461(); | 289 o.labels = buildUnnamed59(); |
| 290 o.operationType = "foo"; | 290 o.operationType = "foo"; |
| 291 o.status = buildClusterOperationStatus(); | 291 o.status = buildClusterOperationStatus(); |
| 292 o.statusHistory = buildUnnamed462(); | 292 o.statusHistory = buildUnnamed60(); |
| 293 o.warnings = buildUnnamed463(); | 293 o.warnings = buildUnnamed61(); |
| 294 } | 294 } |
| 295 buildCounterClusterOperationMetadata--; | 295 buildCounterClusterOperationMetadata--; |
| 296 return o; | 296 return o; |
| 297 } | 297 } |
| 298 | 298 |
| 299 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 299 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
| 300 buildCounterClusterOperationMetadata++; | 300 buildCounterClusterOperationMetadata++; |
| 301 if (buildCounterClusterOperationMetadata < 3) { | 301 if (buildCounterClusterOperationMetadata < 3) { |
| 302 unittest.expect(o.clusterName, unittest.equals('foo')); | 302 unittest.expect(o.clusterName, unittest.equals('foo')); |
| 303 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 303 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
| 304 unittest.expect(o.description, unittest.equals('foo')); | 304 unittest.expect(o.description, unittest.equals('foo')); |
| 305 checkUnnamed461(o.labels); | 305 checkUnnamed59(o.labels); |
| 306 unittest.expect(o.operationType, unittest.equals('foo')); | 306 unittest.expect(o.operationType, unittest.equals('foo')); |
| 307 checkClusterOperationStatus(o.status); | 307 checkClusterOperationStatus(o.status); |
| 308 checkUnnamed462(o.statusHistory); | 308 checkUnnamed60(o.statusHistory); |
| 309 checkUnnamed463(o.warnings); | 309 checkUnnamed61(o.warnings); |
| 310 } | 310 } |
| 311 buildCounterClusterOperationMetadata--; | 311 buildCounterClusterOperationMetadata--; |
| 312 } | 312 } |
| 313 | 313 |
| 314 core.int buildCounterClusterOperationStatus = 0; | 314 core.int buildCounterClusterOperationStatus = 0; |
| 315 buildClusterOperationStatus() { | 315 buildClusterOperationStatus() { |
| 316 var o = new api.ClusterOperationStatus(); | 316 var o = new api.ClusterOperationStatus(); |
| 317 buildCounterClusterOperationStatus++; | 317 buildCounterClusterOperationStatus++; |
| 318 if (buildCounterClusterOperationStatus < 3) { | 318 if (buildCounterClusterOperationStatus < 3) { |
| 319 o.details = "foo"; | 319 o.details = "foo"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 return o; | 371 return o; |
| 372 } | 372 } |
| 373 | 373 |
| 374 checkDiagnoseClusterRequest(api.DiagnoseClusterRequest o) { | 374 checkDiagnoseClusterRequest(api.DiagnoseClusterRequest o) { |
| 375 buildCounterDiagnoseClusterRequest++; | 375 buildCounterDiagnoseClusterRequest++; |
| 376 if (buildCounterDiagnoseClusterRequest < 3) { | 376 if (buildCounterDiagnoseClusterRequest < 3) { |
| 377 } | 377 } |
| 378 buildCounterDiagnoseClusterRequest--; | 378 buildCounterDiagnoseClusterRequest--; |
| 379 } | 379 } |
| 380 | 380 |
| 381 core.int buildCounterDiagnoseClusterResults = 0; | |
| 382 buildDiagnoseClusterResults() { | |
| 383 var o = new api.DiagnoseClusterResults(); | |
| 384 buildCounterDiagnoseClusterResults++; | |
| 385 if (buildCounterDiagnoseClusterResults < 3) { | |
| 386 o.outputUri = "foo"; | |
| 387 } | |
| 388 buildCounterDiagnoseClusterResults--; | |
| 389 return o; | |
| 390 } | |
| 391 | |
| 392 checkDiagnoseClusterResults(api.DiagnoseClusterResults o) { | |
| 393 buildCounterDiagnoseClusterResults++; | |
| 394 if (buildCounterDiagnoseClusterResults < 3) { | |
| 395 unittest.expect(o.outputUri, unittest.equals('foo')); | |
| 396 } | |
| 397 buildCounterDiagnoseClusterResults--; | |
| 398 } | |
| 399 | |
| 400 core.int buildCounterDiskConfig = 0; | 381 core.int buildCounterDiskConfig = 0; |
| 401 buildDiskConfig() { | 382 buildDiskConfig() { |
| 402 var o = new api.DiskConfig(); | 383 var o = new api.DiskConfig(); |
| 403 buildCounterDiskConfig++; | 384 buildCounterDiskConfig++; |
| 404 if (buildCounterDiskConfig < 3) { | 385 if (buildCounterDiskConfig < 3) { |
| 405 o.bootDiskSizeGb = 42; | 386 o.bootDiskSizeGb = 42; |
| 406 o.numLocalSsds = 42; | 387 o.numLocalSsds = 42; |
| 407 } | 388 } |
| 408 buildCounterDiskConfig--; | 389 buildCounterDiskConfig--; |
| 409 return o; | 390 return o; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 428 return o; | 409 return o; |
| 429 } | 410 } |
| 430 | 411 |
| 431 checkEmpty(api.Empty o) { | 412 checkEmpty(api.Empty o) { |
| 432 buildCounterEmpty++; | 413 buildCounterEmpty++; |
| 433 if (buildCounterEmpty < 3) { | 414 if (buildCounterEmpty < 3) { |
| 434 } | 415 } |
| 435 buildCounterEmpty--; | 416 buildCounterEmpty--; |
| 436 } | 417 } |
| 437 | 418 |
| 438 buildUnnamed464() { | 419 buildUnnamed62() { |
| 439 var o = new core.Map<core.String, core.String>(); | 420 var o = new core.Map<core.String, core.String>(); |
| 440 o["x"] = "foo"; | 421 o["x"] = "foo"; |
| 441 o["y"] = "foo"; | 422 o["y"] = "foo"; |
| 442 return o; | 423 return o; |
| 443 } | 424 } |
| 444 | 425 |
| 445 checkUnnamed464(core.Map<core.String, core.String> o) { | 426 checkUnnamed62(core.Map<core.String, core.String> o) { |
| 446 unittest.expect(o, unittest.hasLength(2)); | 427 unittest.expect(o, unittest.hasLength(2)); |
| 447 unittest.expect(o["x"], unittest.equals('foo')); | 428 unittest.expect(o["x"], unittest.equals('foo')); |
| 448 unittest.expect(o["y"], unittest.equals('foo')); | 429 unittest.expect(o["y"], unittest.equals('foo')); |
| 449 } | 430 } |
| 450 | 431 |
| 451 buildUnnamed465() { | 432 buildUnnamed63() { |
| 452 var o = new core.List<core.String>(); | 433 var o = new core.List<core.String>(); |
| 453 o.add("foo"); | 434 o.add("foo"); |
| 454 o.add("foo"); | 435 o.add("foo"); |
| 455 return o; | 436 return o; |
| 456 } | 437 } |
| 457 | 438 |
| 458 checkUnnamed465(core.List<core.String> o) { | 439 checkUnnamed63(core.List<core.String> o) { |
| 459 unittest.expect(o, unittest.hasLength(2)); | 440 unittest.expect(o, unittest.hasLength(2)); |
| 460 unittest.expect(o[0], unittest.equals('foo')); | 441 unittest.expect(o[0], unittest.equals('foo')); |
| 461 unittest.expect(o[1], unittest.equals('foo')); | 442 unittest.expect(o[1], unittest.equals('foo')); |
| 462 } | 443 } |
| 463 | 444 |
| 464 buildUnnamed466() { | 445 buildUnnamed64() { |
| 465 var o = new core.List<core.String>(); | 446 var o = new core.List<core.String>(); |
| 466 o.add("foo"); | 447 o.add("foo"); |
| 467 o.add("foo"); | 448 o.add("foo"); |
| 468 return o; | 449 return o; |
| 469 } | 450 } |
| 470 | 451 |
| 471 checkUnnamed466(core.List<core.String> o) { | 452 checkUnnamed64(core.List<core.String> o) { |
| 472 unittest.expect(o, unittest.hasLength(2)); | 453 unittest.expect(o, unittest.hasLength(2)); |
| 473 unittest.expect(o[0], unittest.equals('foo')); | 454 unittest.expect(o[0], unittest.equals('foo')); |
| 474 unittest.expect(o[1], unittest.equals('foo')); | 455 unittest.expect(o[1], unittest.equals('foo')); |
| 475 } | 456 } |
| 476 | 457 |
| 477 core.int buildCounterGceClusterConfig = 0; | 458 core.int buildCounterGceClusterConfig = 0; |
| 478 buildGceClusterConfig() { | 459 buildGceClusterConfig() { |
| 479 var o = new api.GceClusterConfig(); | 460 var o = new api.GceClusterConfig(); |
| 480 buildCounterGceClusterConfig++; | 461 buildCounterGceClusterConfig++; |
| 481 if (buildCounterGceClusterConfig < 3) { | 462 if (buildCounterGceClusterConfig < 3) { |
| 482 o.internalIpOnly = true; | 463 o.internalIpOnly = true; |
| 483 o.metadata = buildUnnamed464(); | 464 o.metadata = buildUnnamed62(); |
| 484 o.networkUri = "foo"; | 465 o.networkUri = "foo"; |
| 485 o.serviceAccount = "foo"; | 466 o.serviceAccount = "foo"; |
| 486 o.serviceAccountScopes = buildUnnamed465(); | 467 o.serviceAccountScopes = buildUnnamed63(); |
| 487 o.subnetworkUri = "foo"; | 468 o.subnetworkUri = "foo"; |
| 488 o.tags = buildUnnamed466(); | 469 o.tags = buildUnnamed64(); |
| 489 o.zoneUri = "foo"; | 470 o.zoneUri = "foo"; |
| 490 } | 471 } |
| 491 buildCounterGceClusterConfig--; | 472 buildCounterGceClusterConfig--; |
| 492 return o; | 473 return o; |
| 493 } | 474 } |
| 494 | 475 |
| 495 checkGceClusterConfig(api.GceClusterConfig o) { | 476 checkGceClusterConfig(api.GceClusterConfig o) { |
| 496 buildCounterGceClusterConfig++; | 477 buildCounterGceClusterConfig++; |
| 497 if (buildCounterGceClusterConfig < 3) { | 478 if (buildCounterGceClusterConfig < 3) { |
| 498 unittest.expect(o.internalIpOnly, unittest.isTrue); | 479 unittest.expect(o.internalIpOnly, unittest.isTrue); |
| 499 checkUnnamed464(o.metadata); | 480 checkUnnamed62(o.metadata); |
| 500 unittest.expect(o.networkUri, unittest.equals('foo')); | 481 unittest.expect(o.networkUri, unittest.equals('foo')); |
| 501 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 482 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
| 502 checkUnnamed465(o.serviceAccountScopes); | 483 checkUnnamed63(o.serviceAccountScopes); |
| 503 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 484 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
| 504 checkUnnamed466(o.tags); | 485 checkUnnamed64(o.tags); |
| 505 unittest.expect(o.zoneUri, unittest.equals('foo')); | 486 unittest.expect(o.zoneUri, unittest.equals('foo')); |
| 506 } | 487 } |
| 507 buildCounterGceClusterConfig--; | 488 buildCounterGceClusterConfig--; |
| 508 } | 489 } |
| 509 | 490 |
| 510 buildUnnamed467() { | 491 buildUnnamed65() { |
| 511 var o = new core.List<core.String>(); | 492 var o = new core.List<core.String>(); |
| 512 o.add("foo"); | 493 o.add("foo"); |
| 513 o.add("foo"); | 494 o.add("foo"); |
| 514 return o; | 495 return o; |
| 515 } | 496 } |
| 516 | 497 |
| 517 checkUnnamed467(core.List<core.String> o) { | 498 checkUnnamed65(core.List<core.String> o) { |
| 518 unittest.expect(o, unittest.hasLength(2)); | 499 unittest.expect(o, unittest.hasLength(2)); |
| 519 unittest.expect(o[0], unittest.equals('foo')); | 500 unittest.expect(o[0], unittest.equals('foo')); |
| 520 unittest.expect(o[1], unittest.equals('foo')); | 501 unittest.expect(o[1], unittest.equals('foo')); |
| 521 } | 502 } |
| 522 | 503 |
| 523 buildUnnamed468() { | 504 buildUnnamed66() { |
| 524 var o = new core.List<core.String>(); | 505 var o = new core.List<core.String>(); |
| 525 o.add("foo"); | 506 o.add("foo"); |
| 526 o.add("foo"); | 507 o.add("foo"); |
| 527 return o; | 508 return o; |
| 528 } | 509 } |
| 529 | 510 |
| 530 checkUnnamed468(core.List<core.String> o) { | 511 checkUnnamed66(core.List<core.String> o) { |
| 531 unittest.expect(o, unittest.hasLength(2)); | 512 unittest.expect(o, unittest.hasLength(2)); |
| 532 unittest.expect(o[0], unittest.equals('foo')); | 513 unittest.expect(o[0], unittest.equals('foo')); |
| 533 unittest.expect(o[1], unittest.equals('foo')); | 514 unittest.expect(o[1], unittest.equals('foo')); |
| 534 } | 515 } |
| 535 | 516 |
| 536 buildUnnamed469() { | 517 buildUnnamed67() { |
| 537 var o = new core.List<core.String>(); | 518 var o = new core.List<core.String>(); |
| 538 o.add("foo"); | 519 o.add("foo"); |
| 539 o.add("foo"); | 520 o.add("foo"); |
| 540 return o; | 521 return o; |
| 541 } | 522 } |
| 542 | 523 |
| 543 checkUnnamed469(core.List<core.String> o) { | 524 checkUnnamed67(core.List<core.String> o) { |
| 544 unittest.expect(o, unittest.hasLength(2)); | 525 unittest.expect(o, unittest.hasLength(2)); |
| 545 unittest.expect(o[0], unittest.equals('foo')); | 526 unittest.expect(o[0], unittest.equals('foo')); |
| 546 unittest.expect(o[1], unittest.equals('foo')); | 527 unittest.expect(o[1], unittest.equals('foo')); |
| 547 } | 528 } |
| 548 | 529 |
| 549 buildUnnamed470() { | 530 buildUnnamed68() { |
| 550 var o = new core.List<core.String>(); | 531 var o = new core.List<core.String>(); |
| 551 o.add("foo"); | 532 o.add("foo"); |
| 552 o.add("foo"); | 533 o.add("foo"); |
| 553 return o; | 534 return o; |
| 554 } | 535 } |
| 555 | 536 |
| 556 checkUnnamed470(core.List<core.String> o) { | 537 checkUnnamed68(core.List<core.String> o) { |
| 557 unittest.expect(o, unittest.hasLength(2)); | 538 unittest.expect(o, unittest.hasLength(2)); |
| 558 unittest.expect(o[0], unittest.equals('foo')); | 539 unittest.expect(o[0], unittest.equals('foo')); |
| 559 unittest.expect(o[1], unittest.equals('foo')); | 540 unittest.expect(o[1], unittest.equals('foo')); |
| 560 } | 541 } |
| 561 | 542 |
| 562 buildUnnamed471() { | 543 buildUnnamed69() { |
| 563 var o = new core.Map<core.String, core.String>(); | 544 var o = new core.Map<core.String, core.String>(); |
| 564 o["x"] = "foo"; | 545 o["x"] = "foo"; |
| 565 o["y"] = "foo"; | 546 o["y"] = "foo"; |
| 566 return o; | 547 return o; |
| 567 } | 548 } |
| 568 | 549 |
| 569 checkUnnamed471(core.Map<core.String, core.String> o) { | 550 checkUnnamed69(core.Map<core.String, core.String> o) { |
| 570 unittest.expect(o, unittest.hasLength(2)); | 551 unittest.expect(o, unittest.hasLength(2)); |
| 571 unittest.expect(o["x"], unittest.equals('foo')); | 552 unittest.expect(o["x"], unittest.equals('foo')); |
| 572 unittest.expect(o["y"], unittest.equals('foo')); | 553 unittest.expect(o["y"], unittest.equals('foo')); |
| 573 } | 554 } |
| 574 | 555 |
| 575 core.int buildCounterHadoopJob = 0; | 556 core.int buildCounterHadoopJob = 0; |
| 576 buildHadoopJob() { | 557 buildHadoopJob() { |
| 577 var o = new api.HadoopJob(); | 558 var o = new api.HadoopJob(); |
| 578 buildCounterHadoopJob++; | 559 buildCounterHadoopJob++; |
| 579 if (buildCounterHadoopJob < 3) { | 560 if (buildCounterHadoopJob < 3) { |
| 580 o.archiveUris = buildUnnamed467(); | 561 o.archiveUris = buildUnnamed65(); |
| 581 o.args = buildUnnamed468(); | 562 o.args = buildUnnamed66(); |
| 582 o.fileUris = buildUnnamed469(); | 563 o.fileUris = buildUnnamed67(); |
| 583 o.jarFileUris = buildUnnamed470(); | 564 o.jarFileUris = buildUnnamed68(); |
| 584 o.loggingConfig = buildLoggingConfig(); | 565 o.loggingConfig = buildLoggingConfig(); |
| 585 o.mainClass = "foo"; | 566 o.mainClass = "foo"; |
| 586 o.mainJarFileUri = "foo"; | 567 o.mainJarFileUri = "foo"; |
| 587 o.properties = buildUnnamed471(); | 568 o.properties = buildUnnamed69(); |
| 588 } | 569 } |
| 589 buildCounterHadoopJob--; | 570 buildCounterHadoopJob--; |
| 590 return o; | 571 return o; |
| 591 } | 572 } |
| 592 | 573 |
| 593 checkHadoopJob(api.HadoopJob o) { | 574 checkHadoopJob(api.HadoopJob o) { |
| 594 buildCounterHadoopJob++; | 575 buildCounterHadoopJob++; |
| 595 if (buildCounterHadoopJob < 3) { | 576 if (buildCounterHadoopJob < 3) { |
| 596 checkUnnamed467(o.archiveUris); | 577 checkUnnamed65(o.archiveUris); |
| 597 checkUnnamed468(o.args); | 578 checkUnnamed66(o.args); |
| 598 checkUnnamed469(o.fileUris); | 579 checkUnnamed67(o.fileUris); |
| 599 checkUnnamed470(o.jarFileUris); | 580 checkUnnamed68(o.jarFileUris); |
| 600 checkLoggingConfig(o.loggingConfig); | 581 checkLoggingConfig(o.loggingConfig); |
| 601 unittest.expect(o.mainClass, unittest.equals('foo')); | 582 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 602 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 583 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 603 checkUnnamed471(o.properties); | 584 checkUnnamed69(o.properties); |
| 604 } | 585 } |
| 605 buildCounterHadoopJob--; | 586 buildCounterHadoopJob--; |
| 606 } | 587 } |
| 607 | 588 |
| 608 buildUnnamed472() { | 589 buildUnnamed70() { |
| 609 var o = new core.List<core.String>(); | 590 var o = new core.List<core.String>(); |
| 610 o.add("foo"); | 591 o.add("foo"); |
| 611 o.add("foo"); | 592 o.add("foo"); |
| 612 return o; | 593 return o; |
| 613 } | 594 } |
| 614 | 595 |
| 615 checkUnnamed472(core.List<core.String> o) { | 596 checkUnnamed70(core.List<core.String> o) { |
| 616 unittest.expect(o, unittest.hasLength(2)); | 597 unittest.expect(o, unittest.hasLength(2)); |
| 617 unittest.expect(o[0], unittest.equals('foo')); | 598 unittest.expect(o[0], unittest.equals('foo')); |
| 618 unittest.expect(o[1], unittest.equals('foo')); | 599 unittest.expect(o[1], unittest.equals('foo')); |
| 619 } | 600 } |
| 620 | 601 |
| 621 buildUnnamed473() { | 602 buildUnnamed71() { |
| 622 var o = new core.Map<core.String, core.String>(); | 603 var o = new core.Map<core.String, core.String>(); |
| 623 o["x"] = "foo"; | 604 o["x"] = "foo"; |
| 624 o["y"] = "foo"; | 605 o["y"] = "foo"; |
| 625 return o; | 606 return o; |
| 626 } | 607 } |
| 627 | 608 |
| 628 checkUnnamed473(core.Map<core.String, core.String> o) { | 609 checkUnnamed71(core.Map<core.String, core.String> o) { |
| 629 unittest.expect(o, unittest.hasLength(2)); | 610 unittest.expect(o, unittest.hasLength(2)); |
| 630 unittest.expect(o["x"], unittest.equals('foo')); | 611 unittest.expect(o["x"], unittest.equals('foo')); |
| 631 unittest.expect(o["y"], unittest.equals('foo')); | 612 unittest.expect(o["y"], unittest.equals('foo')); |
| 632 } | 613 } |
| 633 | 614 |
| 634 buildUnnamed474() { | 615 buildUnnamed72() { |
| 635 var o = new core.Map<core.String, core.String>(); | 616 var o = new core.Map<core.String, core.String>(); |
| 636 o["x"] = "foo"; | 617 o["x"] = "foo"; |
| 637 o["y"] = "foo"; | 618 o["y"] = "foo"; |
| 638 return o; | 619 return o; |
| 639 } | 620 } |
| 640 | 621 |
| 641 checkUnnamed474(core.Map<core.String, core.String> o) { | 622 checkUnnamed72(core.Map<core.String, core.String> o) { |
| 642 unittest.expect(o, unittest.hasLength(2)); | 623 unittest.expect(o, unittest.hasLength(2)); |
| 643 unittest.expect(o["x"], unittest.equals('foo')); | 624 unittest.expect(o["x"], unittest.equals('foo')); |
| 644 unittest.expect(o["y"], unittest.equals('foo')); | 625 unittest.expect(o["y"], unittest.equals('foo')); |
| 645 } | 626 } |
| 646 | 627 |
| 647 core.int buildCounterHiveJob = 0; | 628 core.int buildCounterHiveJob = 0; |
| 648 buildHiveJob() { | 629 buildHiveJob() { |
| 649 var o = new api.HiveJob(); | 630 var o = new api.HiveJob(); |
| 650 buildCounterHiveJob++; | 631 buildCounterHiveJob++; |
| 651 if (buildCounterHiveJob < 3) { | 632 if (buildCounterHiveJob < 3) { |
| 652 o.continueOnFailure = true; | 633 o.continueOnFailure = true; |
| 653 o.jarFileUris = buildUnnamed472(); | 634 o.jarFileUris = buildUnnamed70(); |
| 654 o.properties = buildUnnamed473(); | 635 o.properties = buildUnnamed71(); |
| 655 o.queryFileUri = "foo"; | 636 o.queryFileUri = "foo"; |
| 656 o.queryList = buildQueryList(); | 637 o.queryList = buildQueryList(); |
| 657 o.scriptVariables = buildUnnamed474(); | 638 o.scriptVariables = buildUnnamed72(); |
| 658 } | 639 } |
| 659 buildCounterHiveJob--; | 640 buildCounterHiveJob--; |
| 660 return o; | 641 return o; |
| 661 } | 642 } |
| 662 | 643 |
| 663 checkHiveJob(api.HiveJob o) { | 644 checkHiveJob(api.HiveJob o) { |
| 664 buildCounterHiveJob++; | 645 buildCounterHiveJob++; |
| 665 if (buildCounterHiveJob < 3) { | 646 if (buildCounterHiveJob < 3) { |
| 666 unittest.expect(o.continueOnFailure, unittest.isTrue); | 647 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 667 checkUnnamed472(o.jarFileUris); | 648 checkUnnamed70(o.jarFileUris); |
| 668 checkUnnamed473(o.properties); | 649 checkUnnamed71(o.properties); |
| 669 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 650 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 670 checkQueryList(o.queryList); | 651 checkQueryList(o.queryList); |
| 671 checkUnnamed474(o.scriptVariables); | 652 checkUnnamed72(o.scriptVariables); |
| 672 } | 653 } |
| 673 buildCounterHiveJob--; | 654 buildCounterHiveJob--; |
| 674 } | 655 } |
| 675 | 656 |
| 676 buildUnnamed475() { | 657 buildUnnamed73() { |
| 677 var o = new core.List<api.AcceleratorConfig>(); | 658 var o = new core.List<api.AcceleratorConfig>(); |
| 678 o.add(buildAcceleratorConfig()); | 659 o.add(buildAcceleratorConfig()); |
| 679 o.add(buildAcceleratorConfig()); | 660 o.add(buildAcceleratorConfig()); |
| 680 return o; | 661 return o; |
| 681 } | 662 } |
| 682 | 663 |
| 683 checkUnnamed475(core.List<api.AcceleratorConfig> o) { | 664 checkUnnamed73(core.List<api.AcceleratorConfig> o) { |
| 684 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
| 685 checkAcceleratorConfig(o[0]); | 666 checkAcceleratorConfig(o[0]); |
| 686 checkAcceleratorConfig(o[1]); | 667 checkAcceleratorConfig(o[1]); |
| 687 } | 668 } |
| 688 | 669 |
| 689 buildUnnamed476() { | 670 buildUnnamed74() { |
| 690 var o = new core.List<core.String>(); | 671 var o = new core.List<core.String>(); |
| 691 o.add("foo"); | 672 o.add("foo"); |
| 692 o.add("foo"); | 673 o.add("foo"); |
| 693 return o; | 674 return o; |
| 694 } | 675 } |
| 695 | 676 |
| 696 checkUnnamed476(core.List<core.String> o) { | 677 checkUnnamed74(core.List<core.String> o) { |
| 697 unittest.expect(o, unittest.hasLength(2)); | 678 unittest.expect(o, unittest.hasLength(2)); |
| 698 unittest.expect(o[0], unittest.equals('foo')); | 679 unittest.expect(o[0], unittest.equals('foo')); |
| 699 unittest.expect(o[1], unittest.equals('foo')); | 680 unittest.expect(o[1], unittest.equals('foo')); |
| 700 } | 681 } |
| 701 | 682 |
| 702 core.int buildCounterInstanceGroupConfig = 0; | 683 core.int buildCounterInstanceGroupConfig = 0; |
| 703 buildInstanceGroupConfig() { | 684 buildInstanceGroupConfig() { |
| 704 var o = new api.InstanceGroupConfig(); | 685 var o = new api.InstanceGroupConfig(); |
| 705 buildCounterInstanceGroupConfig++; | 686 buildCounterInstanceGroupConfig++; |
| 706 if (buildCounterInstanceGroupConfig < 3) { | 687 if (buildCounterInstanceGroupConfig < 3) { |
| 707 o.accelerators = buildUnnamed475(); | 688 o.accelerators = buildUnnamed73(); |
| 708 o.diskConfig = buildDiskConfig(); | 689 o.diskConfig = buildDiskConfig(); |
| 709 o.imageUri = "foo"; | 690 o.imageUri = "foo"; |
| 710 o.instanceNames = buildUnnamed476(); | 691 o.instanceNames = buildUnnamed74(); |
| 711 o.isPreemptible = true; | 692 o.isPreemptible = true; |
| 712 o.machineTypeUri = "foo"; | 693 o.machineTypeUri = "foo"; |
| 713 o.managedGroupConfig = buildManagedGroupConfig(); | 694 o.managedGroupConfig = buildManagedGroupConfig(); |
| 714 o.numInstances = 42; | 695 o.numInstances = 42; |
| 715 } | 696 } |
| 716 buildCounterInstanceGroupConfig--; | 697 buildCounterInstanceGroupConfig--; |
| 717 return o; | 698 return o; |
| 718 } | 699 } |
| 719 | 700 |
| 720 checkInstanceGroupConfig(api.InstanceGroupConfig o) { | 701 checkInstanceGroupConfig(api.InstanceGroupConfig o) { |
| 721 buildCounterInstanceGroupConfig++; | 702 buildCounterInstanceGroupConfig++; |
| 722 if (buildCounterInstanceGroupConfig < 3) { | 703 if (buildCounterInstanceGroupConfig < 3) { |
| 723 checkUnnamed475(o.accelerators); | 704 checkUnnamed73(o.accelerators); |
| 724 checkDiskConfig(o.diskConfig); | 705 checkDiskConfig(o.diskConfig); |
| 725 unittest.expect(o.imageUri, unittest.equals('foo')); | 706 unittest.expect(o.imageUri, unittest.equals('foo')); |
| 726 checkUnnamed476(o.instanceNames); | 707 checkUnnamed74(o.instanceNames); |
| 727 unittest.expect(o.isPreemptible, unittest.isTrue); | 708 unittest.expect(o.isPreemptible, unittest.isTrue); |
| 728 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 709 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
| 729 checkManagedGroupConfig(o.managedGroupConfig); | 710 checkManagedGroupConfig(o.managedGroupConfig); |
| 730 unittest.expect(o.numInstances, unittest.equals(42)); | 711 unittest.expect(o.numInstances, unittest.equals(42)); |
| 731 } | 712 } |
| 732 buildCounterInstanceGroupConfig--; | 713 buildCounterInstanceGroupConfig--; |
| 733 } | 714 } |
| 734 | 715 |
| 735 buildUnnamed477() { | 716 buildUnnamed75() { |
| 736 var o = new core.Map<core.String, core.String>(); | 717 var o = new core.Map<core.String, core.String>(); |
| 737 o["x"] = "foo"; | 718 o["x"] = "foo"; |
| 738 o["y"] = "foo"; | 719 o["y"] = "foo"; |
| 739 return o; | 720 return o; |
| 740 } | 721 } |
| 741 | 722 |
| 742 checkUnnamed477(core.Map<core.String, core.String> o) { | 723 checkUnnamed75(core.Map<core.String, core.String> o) { |
| 743 unittest.expect(o, unittest.hasLength(2)); | 724 unittest.expect(o, unittest.hasLength(2)); |
| 744 unittest.expect(o["x"], unittest.equals('foo')); | 725 unittest.expect(o["x"], unittest.equals('foo')); |
| 745 unittest.expect(o["y"], unittest.equals('foo')); | 726 unittest.expect(o["y"], unittest.equals('foo')); |
| 746 } | 727 } |
| 747 | 728 |
| 748 buildUnnamed478() { | 729 buildUnnamed76() { |
| 749 var o = new core.List<api.JobStatus>(); | 730 var o = new core.List<api.JobStatus>(); |
| 750 o.add(buildJobStatus()); | 731 o.add(buildJobStatus()); |
| 751 o.add(buildJobStatus()); | 732 o.add(buildJobStatus()); |
| 752 return o; | 733 return o; |
| 753 } | 734 } |
| 754 | 735 |
| 755 checkUnnamed478(core.List<api.JobStatus> o) { | 736 checkUnnamed76(core.List<api.JobStatus> o) { |
| 756 unittest.expect(o, unittest.hasLength(2)); | 737 unittest.expect(o, unittest.hasLength(2)); |
| 757 checkJobStatus(o[0]); | 738 checkJobStatus(o[0]); |
| 758 checkJobStatus(o[1]); | 739 checkJobStatus(o[1]); |
| 759 } | 740 } |
| 760 | 741 |
| 761 buildUnnamed479() { | 742 buildUnnamed77() { |
| 762 var o = new core.List<api.YarnApplication>(); | 743 var o = new core.List<api.YarnApplication>(); |
| 763 o.add(buildYarnApplication()); | 744 o.add(buildYarnApplication()); |
| 764 o.add(buildYarnApplication()); | 745 o.add(buildYarnApplication()); |
| 765 return o; | 746 return o; |
| 766 } | 747 } |
| 767 | 748 |
| 768 checkUnnamed479(core.List<api.YarnApplication> o) { | 749 checkUnnamed77(core.List<api.YarnApplication> o) { |
| 769 unittest.expect(o, unittest.hasLength(2)); | 750 unittest.expect(o, unittest.hasLength(2)); |
| 770 checkYarnApplication(o[0]); | 751 checkYarnApplication(o[0]); |
| 771 checkYarnApplication(o[1]); | 752 checkYarnApplication(o[1]); |
| 772 } | 753 } |
| 773 | 754 |
| 774 core.int buildCounterJob = 0; | 755 core.int buildCounterJob = 0; |
| 775 buildJob() { | 756 buildJob() { |
| 776 var o = new api.Job(); | 757 var o = new api.Job(); |
| 777 buildCounterJob++; | 758 buildCounterJob++; |
| 778 if (buildCounterJob < 3) { | 759 if (buildCounterJob < 3) { |
| 779 o.driverControlFilesUri = "foo"; | 760 o.driverControlFilesUri = "foo"; |
| 780 o.driverOutputResourceUri = "foo"; | 761 o.driverOutputResourceUri = "foo"; |
| 781 o.hadoopJob = buildHadoopJob(); | 762 o.hadoopJob = buildHadoopJob(); |
| 782 o.hiveJob = buildHiveJob(); | 763 o.hiveJob = buildHiveJob(); |
| 783 o.labels = buildUnnamed477(); | 764 o.labels = buildUnnamed75(); |
| 784 o.pigJob = buildPigJob(); | 765 o.pigJob = buildPigJob(); |
| 785 o.placement = buildJobPlacement(); | 766 o.placement = buildJobPlacement(); |
| 786 o.pysparkJob = buildPySparkJob(); | 767 o.pysparkJob = buildPySparkJob(); |
| 787 o.reference = buildJobReference(); | 768 o.reference = buildJobReference(); |
| 788 o.scheduling = buildJobScheduling(); | 769 o.scheduling = buildJobScheduling(); |
| 789 o.sparkJob = buildSparkJob(); | 770 o.sparkJob = buildSparkJob(); |
| 790 o.sparkSqlJob = buildSparkSqlJob(); | 771 o.sparkSqlJob = buildSparkSqlJob(); |
| 791 o.status = buildJobStatus(); | 772 o.status = buildJobStatus(); |
| 792 o.statusHistory = buildUnnamed478(); | 773 o.statusHistory = buildUnnamed76(); |
| 793 o.yarnApplications = buildUnnamed479(); | 774 o.yarnApplications = buildUnnamed77(); |
| 794 } | 775 } |
| 795 buildCounterJob--; | 776 buildCounterJob--; |
| 796 return o; | 777 return o; |
| 797 } | 778 } |
| 798 | 779 |
| 799 checkJob(api.Job o) { | 780 checkJob(api.Job o) { |
| 800 buildCounterJob++; | 781 buildCounterJob++; |
| 801 if (buildCounterJob < 3) { | 782 if (buildCounterJob < 3) { |
| 802 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 783 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
| 803 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 784 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
| 804 checkHadoopJob(o.hadoopJob); | 785 checkHadoopJob(o.hadoopJob); |
| 805 checkHiveJob(o.hiveJob); | 786 checkHiveJob(o.hiveJob); |
| 806 checkUnnamed477(o.labels); | 787 checkUnnamed75(o.labels); |
| 807 checkPigJob(o.pigJob); | 788 checkPigJob(o.pigJob); |
| 808 checkJobPlacement(o.placement); | 789 checkJobPlacement(o.placement); |
| 809 checkPySparkJob(o.pysparkJob); | 790 checkPySparkJob(o.pysparkJob); |
| 810 checkJobReference(o.reference); | 791 checkJobReference(o.reference); |
| 811 checkJobScheduling(o.scheduling); | 792 checkJobScheduling(o.scheduling); |
| 812 checkSparkJob(o.sparkJob); | 793 checkSparkJob(o.sparkJob); |
| 813 checkSparkSqlJob(o.sparkSqlJob); | 794 checkSparkSqlJob(o.sparkSqlJob); |
| 814 checkJobStatus(o.status); | 795 checkJobStatus(o.status); |
| 815 checkUnnamed478(o.statusHistory); | 796 checkUnnamed76(o.statusHistory); |
| 816 checkUnnamed479(o.yarnApplications); | 797 checkUnnamed77(o.yarnApplications); |
| 817 } | 798 } |
| 818 buildCounterJob--; | 799 buildCounterJob--; |
| 819 } | 800 } |
| 820 | 801 |
| 821 core.int buildCounterJobPlacement = 0; | 802 core.int buildCounterJobPlacement = 0; |
| 822 buildJobPlacement() { | 803 buildJobPlacement() { |
| 823 var o = new api.JobPlacement(); | 804 var o = new api.JobPlacement(); |
| 824 buildCounterJobPlacement++; | 805 buildCounterJobPlacement++; |
| 825 if (buildCounterJobPlacement < 3) { | 806 if (buildCounterJobPlacement < 3) { |
| 826 o.clusterName = "foo"; | 807 o.clusterName = "foo"; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 buildCounterJobStatus++; | 878 buildCounterJobStatus++; |
| 898 if (buildCounterJobStatus < 3) { | 879 if (buildCounterJobStatus < 3) { |
| 899 unittest.expect(o.details, unittest.equals('foo')); | 880 unittest.expect(o.details, unittest.equals('foo')); |
| 900 unittest.expect(o.state, unittest.equals('foo')); | 881 unittest.expect(o.state, unittest.equals('foo')); |
| 901 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 882 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
| 902 unittest.expect(o.substate, unittest.equals('foo')); | 883 unittest.expect(o.substate, unittest.equals('foo')); |
| 903 } | 884 } |
| 904 buildCounterJobStatus--; | 885 buildCounterJobStatus--; |
| 905 } | 886 } |
| 906 | 887 |
| 907 buildUnnamed480() { | 888 buildUnnamed78() { |
| 908 var o = new core.List<api.Cluster>(); | 889 var o = new core.List<api.Cluster>(); |
| 909 o.add(buildCluster()); | 890 o.add(buildCluster()); |
| 910 o.add(buildCluster()); | 891 o.add(buildCluster()); |
| 911 return o; | 892 return o; |
| 912 } | 893 } |
| 913 | 894 |
| 914 checkUnnamed480(core.List<api.Cluster> o) { | 895 checkUnnamed78(core.List<api.Cluster> o) { |
| 915 unittest.expect(o, unittest.hasLength(2)); | 896 unittest.expect(o, unittest.hasLength(2)); |
| 916 checkCluster(o[0]); | 897 checkCluster(o[0]); |
| 917 checkCluster(o[1]); | 898 checkCluster(o[1]); |
| 918 } | 899 } |
| 919 | 900 |
| 920 core.int buildCounterListClustersResponse = 0; | 901 core.int buildCounterListClustersResponse = 0; |
| 921 buildListClustersResponse() { | 902 buildListClustersResponse() { |
| 922 var o = new api.ListClustersResponse(); | 903 var o = new api.ListClustersResponse(); |
| 923 buildCounterListClustersResponse++; | 904 buildCounterListClustersResponse++; |
| 924 if (buildCounterListClustersResponse < 3) { | 905 if (buildCounterListClustersResponse < 3) { |
| 925 o.clusters = buildUnnamed480(); | 906 o.clusters = buildUnnamed78(); |
| 926 o.nextPageToken = "foo"; | 907 o.nextPageToken = "foo"; |
| 927 } | 908 } |
| 928 buildCounterListClustersResponse--; | 909 buildCounterListClustersResponse--; |
| 929 return o; | 910 return o; |
| 930 } | 911 } |
| 931 | 912 |
| 932 checkListClustersResponse(api.ListClustersResponse o) { | 913 checkListClustersResponse(api.ListClustersResponse o) { |
| 933 buildCounterListClustersResponse++; | 914 buildCounterListClustersResponse++; |
| 934 if (buildCounterListClustersResponse < 3) { | 915 if (buildCounterListClustersResponse < 3) { |
| 935 checkUnnamed480(o.clusters); | 916 checkUnnamed78(o.clusters); |
| 936 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 917 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 937 } | 918 } |
| 938 buildCounterListClustersResponse--; | 919 buildCounterListClustersResponse--; |
| 939 } | 920 } |
| 940 | 921 |
| 941 buildUnnamed481() { | 922 buildUnnamed79() { |
| 942 var o = new core.List<api.Job>(); | 923 var o = new core.List<api.Job>(); |
| 943 o.add(buildJob()); | 924 o.add(buildJob()); |
| 944 o.add(buildJob()); | 925 o.add(buildJob()); |
| 945 return o; | 926 return o; |
| 946 } | 927 } |
| 947 | 928 |
| 948 checkUnnamed481(core.List<api.Job> o) { | 929 checkUnnamed79(core.List<api.Job> o) { |
| 949 unittest.expect(o, unittest.hasLength(2)); | 930 unittest.expect(o, unittest.hasLength(2)); |
| 950 checkJob(o[0]); | 931 checkJob(o[0]); |
| 951 checkJob(o[1]); | 932 checkJob(o[1]); |
| 952 } | 933 } |
| 953 | 934 |
| 954 core.int buildCounterListJobsResponse = 0; | 935 core.int buildCounterListJobsResponse = 0; |
| 955 buildListJobsResponse() { | 936 buildListJobsResponse() { |
| 956 var o = new api.ListJobsResponse(); | 937 var o = new api.ListJobsResponse(); |
| 957 buildCounterListJobsResponse++; | 938 buildCounterListJobsResponse++; |
| 958 if (buildCounterListJobsResponse < 3) { | 939 if (buildCounterListJobsResponse < 3) { |
| 959 o.jobs = buildUnnamed481(); | 940 o.jobs = buildUnnamed79(); |
| 960 o.nextPageToken = "foo"; | 941 o.nextPageToken = "foo"; |
| 961 } | 942 } |
| 962 buildCounterListJobsResponse--; | 943 buildCounterListJobsResponse--; |
| 963 return o; | 944 return o; |
| 964 } | 945 } |
| 965 | 946 |
| 966 checkListJobsResponse(api.ListJobsResponse o) { | 947 checkListJobsResponse(api.ListJobsResponse o) { |
| 967 buildCounterListJobsResponse++; | 948 buildCounterListJobsResponse++; |
| 968 if (buildCounterListJobsResponse < 3) { | 949 if (buildCounterListJobsResponse < 3) { |
| 969 checkUnnamed481(o.jobs); | 950 checkUnnamed79(o.jobs); |
| 970 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 951 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 971 } | 952 } |
| 972 buildCounterListJobsResponse--; | 953 buildCounterListJobsResponse--; |
| 973 } | 954 } |
| 974 | 955 |
| 975 buildUnnamed482() { | 956 buildUnnamed80() { |
| 976 var o = new core.List<api.Operation>(); | 957 var o = new core.List<api.Operation>(); |
| 977 o.add(buildOperation()); | 958 o.add(buildOperation()); |
| 978 o.add(buildOperation()); | 959 o.add(buildOperation()); |
| 979 return o; | 960 return o; |
| 980 } | 961 } |
| 981 | 962 |
| 982 checkUnnamed482(core.List<api.Operation> o) { | 963 checkUnnamed80(core.List<api.Operation> o) { |
| 983 unittest.expect(o, unittest.hasLength(2)); | 964 unittest.expect(o, unittest.hasLength(2)); |
| 984 checkOperation(o[0]); | 965 checkOperation(o[0]); |
| 985 checkOperation(o[1]); | 966 checkOperation(o[1]); |
| 986 } | 967 } |
| 987 | 968 |
| 988 core.int buildCounterListOperationsResponse = 0; | 969 core.int buildCounterListOperationsResponse = 0; |
| 989 buildListOperationsResponse() { | 970 buildListOperationsResponse() { |
| 990 var o = new api.ListOperationsResponse(); | 971 var o = new api.ListOperationsResponse(); |
| 991 buildCounterListOperationsResponse++; | 972 buildCounterListOperationsResponse++; |
| 992 if (buildCounterListOperationsResponse < 3) { | 973 if (buildCounterListOperationsResponse < 3) { |
| 993 o.nextPageToken = "foo"; | 974 o.nextPageToken = "foo"; |
| 994 o.operations = buildUnnamed482(); | 975 o.operations = buildUnnamed80(); |
| 995 } | 976 } |
| 996 buildCounterListOperationsResponse--; | 977 buildCounterListOperationsResponse--; |
| 997 return o; | 978 return o; |
| 998 } | 979 } |
| 999 | 980 |
| 1000 checkListOperationsResponse(api.ListOperationsResponse o) { | 981 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 1001 buildCounterListOperationsResponse++; | 982 buildCounterListOperationsResponse++; |
| 1002 if (buildCounterListOperationsResponse < 3) { | 983 if (buildCounterListOperationsResponse < 3) { |
| 1003 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 984 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1004 checkUnnamed482(o.operations); | 985 checkUnnamed80(o.operations); |
| 1005 } | 986 } |
| 1006 buildCounterListOperationsResponse--; | 987 buildCounterListOperationsResponse--; |
| 1007 } | 988 } |
| 1008 | 989 |
| 1009 buildUnnamed483() { | 990 buildUnnamed81() { |
| 1010 var o = new core.Map<core.String, core.String>(); | 991 var o = new core.Map<core.String, core.String>(); |
| 1011 o["x"] = "foo"; | 992 o["x"] = "foo"; |
| 1012 o["y"] = "foo"; | 993 o["y"] = "foo"; |
| 1013 return o; | 994 return o; |
| 1014 } | 995 } |
| 1015 | 996 |
| 1016 checkUnnamed483(core.Map<core.String, core.String> o) { | 997 checkUnnamed81(core.Map<core.String, core.String> o) { |
| 1017 unittest.expect(o, unittest.hasLength(2)); | 998 unittest.expect(o, unittest.hasLength(2)); |
| 1018 unittest.expect(o["x"], unittest.equals('foo')); | 999 unittest.expect(o["x"], unittest.equals('foo')); |
| 1019 unittest.expect(o["y"], unittest.equals('foo')); | 1000 unittest.expect(o["y"], unittest.equals('foo')); |
| 1020 } | 1001 } |
| 1021 | 1002 |
| 1022 core.int buildCounterLoggingConfig = 0; | 1003 core.int buildCounterLoggingConfig = 0; |
| 1023 buildLoggingConfig() { | 1004 buildLoggingConfig() { |
| 1024 var o = new api.LoggingConfig(); | 1005 var o = new api.LoggingConfig(); |
| 1025 buildCounterLoggingConfig++; | 1006 buildCounterLoggingConfig++; |
| 1026 if (buildCounterLoggingConfig < 3) { | 1007 if (buildCounterLoggingConfig < 3) { |
| 1027 o.driverLogLevels = buildUnnamed483(); | 1008 o.driverLogLevels = buildUnnamed81(); |
| 1028 } | 1009 } |
| 1029 buildCounterLoggingConfig--; | 1010 buildCounterLoggingConfig--; |
| 1030 return o; | 1011 return o; |
| 1031 } | 1012 } |
| 1032 | 1013 |
| 1033 checkLoggingConfig(api.LoggingConfig o) { | 1014 checkLoggingConfig(api.LoggingConfig o) { |
| 1034 buildCounterLoggingConfig++; | 1015 buildCounterLoggingConfig++; |
| 1035 if (buildCounterLoggingConfig < 3) { | 1016 if (buildCounterLoggingConfig < 3) { |
| 1036 checkUnnamed483(o.driverLogLevels); | 1017 checkUnnamed81(o.driverLogLevels); |
| 1037 } | 1018 } |
| 1038 buildCounterLoggingConfig--; | 1019 buildCounterLoggingConfig--; |
| 1039 } | 1020 } |
| 1040 | 1021 |
| 1041 core.int buildCounterManagedGroupConfig = 0; | 1022 core.int buildCounterManagedGroupConfig = 0; |
| 1042 buildManagedGroupConfig() { | 1023 buildManagedGroupConfig() { |
| 1043 var o = new api.ManagedGroupConfig(); | 1024 var o = new api.ManagedGroupConfig(); |
| 1044 buildCounterManagedGroupConfig++; | 1025 buildCounterManagedGroupConfig++; |
| 1045 if (buildCounterManagedGroupConfig < 3) { | 1026 if (buildCounterManagedGroupConfig < 3) { |
| 1046 o.instanceGroupManagerName = "foo"; | 1027 o.instanceGroupManagerName = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1073 | 1054 |
| 1074 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1055 checkNodeInitializationAction(api.NodeInitializationAction o) { |
| 1075 buildCounterNodeInitializationAction++; | 1056 buildCounterNodeInitializationAction++; |
| 1076 if (buildCounterNodeInitializationAction < 3) { | 1057 if (buildCounterNodeInitializationAction < 3) { |
| 1077 unittest.expect(o.executableFile, unittest.equals('foo')); | 1058 unittest.expect(o.executableFile, unittest.equals('foo')); |
| 1078 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1059 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
| 1079 } | 1060 } |
| 1080 buildCounterNodeInitializationAction--; | 1061 buildCounterNodeInitializationAction--; |
| 1081 } | 1062 } |
| 1082 | 1063 |
| 1083 buildUnnamed484() { | 1064 buildUnnamed82() { |
| 1084 var o = new core.Map<core.String, core.Object>(); | 1065 var o = new core.Map<core.String, core.Object>(); |
| 1085 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1066 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1086 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1067 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1087 return o; | 1068 return o; |
| 1088 } | 1069 } |
| 1089 | 1070 |
| 1090 checkUnnamed484(core.Map<core.String, core.Object> o) { | 1071 checkUnnamed82(core.Map<core.String, core.Object> o) { |
| 1091 unittest.expect(o, unittest.hasLength(2)); | 1072 unittest.expect(o, unittest.hasLength(2)); |
| 1092 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')); | 1073 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')); |
| 1093 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')); | 1074 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')); |
| 1094 } | 1075 } |
| 1095 | 1076 |
| 1096 buildUnnamed485() { | 1077 buildUnnamed83() { |
| 1097 var o = new core.Map<core.String, core.Object>(); | 1078 var o = new core.Map<core.String, core.Object>(); |
| 1098 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1079 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1099 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1080 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1100 return o; | 1081 return o; |
| 1101 } | 1082 } |
| 1102 | 1083 |
| 1103 checkUnnamed485(core.Map<core.String, core.Object> o) { | 1084 checkUnnamed83(core.Map<core.String, core.Object> o) { |
| 1104 unittest.expect(o, unittest.hasLength(2)); | 1085 unittest.expect(o, unittest.hasLength(2)); |
| 1105 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')); | 1086 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')); |
| 1106 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')); | 1087 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')); |
| 1107 } | 1088 } |
| 1108 | 1089 |
| 1109 core.int buildCounterOperation = 0; | 1090 core.int buildCounterOperation = 0; |
| 1110 buildOperation() { | 1091 buildOperation() { |
| 1111 var o = new api.Operation(); | 1092 var o = new api.Operation(); |
| 1112 buildCounterOperation++; | 1093 buildCounterOperation++; |
| 1113 if (buildCounterOperation < 3) { | 1094 if (buildCounterOperation < 3) { |
| 1114 o.done = true; | 1095 o.done = true; |
| 1115 o.error = buildStatus(); | 1096 o.error = buildStatus(); |
| 1116 o.metadata = buildUnnamed484(); | 1097 o.metadata = buildUnnamed82(); |
| 1117 o.name = "foo"; | 1098 o.name = "foo"; |
| 1118 o.response = buildUnnamed485(); | 1099 o.response = buildUnnamed83(); |
| 1119 } | 1100 } |
| 1120 buildCounterOperation--; | 1101 buildCounterOperation--; |
| 1121 return o; | 1102 return o; |
| 1122 } | 1103 } |
| 1123 | 1104 |
| 1124 checkOperation(api.Operation o) { | 1105 checkOperation(api.Operation o) { |
| 1125 buildCounterOperation++; | 1106 buildCounterOperation++; |
| 1126 if (buildCounterOperation < 3) { | 1107 if (buildCounterOperation < 3) { |
| 1127 unittest.expect(o.done, unittest.isTrue); | 1108 unittest.expect(o.done, unittest.isTrue); |
| 1128 checkStatus(o.error); | 1109 checkStatus(o.error); |
| 1129 checkUnnamed484(o.metadata); | 1110 checkUnnamed82(o.metadata); |
| 1130 unittest.expect(o.name, unittest.equals('foo')); | 1111 unittest.expect(o.name, unittest.equals('foo')); |
| 1131 checkUnnamed485(o.response); | 1112 checkUnnamed83(o.response); |
| 1132 } | 1113 } |
| 1133 buildCounterOperation--; | 1114 buildCounterOperation--; |
| 1134 } | 1115 } |
| 1135 | 1116 |
| 1136 buildUnnamed486() { | 1117 buildUnnamed84() { |
| 1137 var o = new core.List<core.String>(); | 1118 var o = new core.List<core.String>(); |
| 1138 o.add("foo"); | 1119 o.add("foo"); |
| 1139 o.add("foo"); | 1120 o.add("foo"); |
| 1140 return o; | 1121 return o; |
| 1141 } | 1122 } |
| 1142 | 1123 |
| 1143 checkUnnamed486(core.List<core.String> o) { | 1124 checkUnnamed84(core.List<core.String> o) { |
| 1144 unittest.expect(o, unittest.hasLength(2)); | 1125 unittest.expect(o, unittest.hasLength(2)); |
| 1145 unittest.expect(o[0], unittest.equals('foo')); | 1126 unittest.expect(o[0], unittest.equals('foo')); |
| 1146 unittest.expect(o[1], unittest.equals('foo')); | 1127 unittest.expect(o[1], unittest.equals('foo')); |
| 1147 } | 1128 } |
| 1148 | 1129 |
| 1149 buildUnnamed487() { | 1130 buildUnnamed85() { |
| 1150 var o = new core.Map<core.String, core.String>(); | 1131 var o = new core.Map<core.String, core.String>(); |
| 1151 o["x"] = "foo"; | 1132 o["x"] = "foo"; |
| 1152 o["y"] = "foo"; | 1133 o["y"] = "foo"; |
| 1153 return o; | 1134 return o; |
| 1154 } | 1135 } |
| 1155 | 1136 |
| 1156 checkUnnamed487(core.Map<core.String, core.String> o) { | 1137 checkUnnamed85(core.Map<core.String, core.String> o) { |
| 1157 unittest.expect(o, unittest.hasLength(2)); | 1138 unittest.expect(o, unittest.hasLength(2)); |
| 1158 unittest.expect(o["x"], unittest.equals('foo')); | 1139 unittest.expect(o["x"], unittest.equals('foo')); |
| 1159 unittest.expect(o["y"], unittest.equals('foo')); | 1140 unittest.expect(o["y"], unittest.equals('foo')); |
| 1160 } | 1141 } |
| 1161 | 1142 |
| 1162 buildUnnamed488() { | 1143 buildUnnamed86() { |
| 1163 var o = new core.Map<core.String, core.String>(); | 1144 var o = new core.Map<core.String, core.String>(); |
| 1164 o["x"] = "foo"; | 1145 o["x"] = "foo"; |
| 1165 o["y"] = "foo"; | 1146 o["y"] = "foo"; |
| 1166 return o; | 1147 return o; |
| 1167 } | 1148 } |
| 1168 | 1149 |
| 1169 checkUnnamed488(core.Map<core.String, core.String> o) { | 1150 checkUnnamed86(core.Map<core.String, core.String> o) { |
| 1170 unittest.expect(o, unittest.hasLength(2)); | 1151 unittest.expect(o, unittest.hasLength(2)); |
| 1171 unittest.expect(o["x"], unittest.equals('foo')); | 1152 unittest.expect(o["x"], unittest.equals('foo')); |
| 1172 unittest.expect(o["y"], unittest.equals('foo')); | 1153 unittest.expect(o["y"], unittest.equals('foo')); |
| 1173 } | 1154 } |
| 1174 | 1155 |
| 1175 core.int buildCounterPigJob = 0; | 1156 core.int buildCounterPigJob = 0; |
| 1176 buildPigJob() { | 1157 buildPigJob() { |
| 1177 var o = new api.PigJob(); | 1158 var o = new api.PigJob(); |
| 1178 buildCounterPigJob++; | 1159 buildCounterPigJob++; |
| 1179 if (buildCounterPigJob < 3) { | 1160 if (buildCounterPigJob < 3) { |
| 1180 o.continueOnFailure = true; | 1161 o.continueOnFailure = true; |
| 1181 o.jarFileUris = buildUnnamed486(); | 1162 o.jarFileUris = buildUnnamed84(); |
| 1182 o.loggingConfig = buildLoggingConfig(); | 1163 o.loggingConfig = buildLoggingConfig(); |
| 1183 o.properties = buildUnnamed487(); | 1164 o.properties = buildUnnamed85(); |
| 1184 o.queryFileUri = "foo"; | 1165 o.queryFileUri = "foo"; |
| 1185 o.queryList = buildQueryList(); | 1166 o.queryList = buildQueryList(); |
| 1186 o.scriptVariables = buildUnnamed488(); | 1167 o.scriptVariables = buildUnnamed86(); |
| 1187 } | 1168 } |
| 1188 buildCounterPigJob--; | 1169 buildCounterPigJob--; |
| 1189 return o; | 1170 return o; |
| 1190 } | 1171 } |
| 1191 | 1172 |
| 1192 checkPigJob(api.PigJob o) { | 1173 checkPigJob(api.PigJob o) { |
| 1193 buildCounterPigJob++; | 1174 buildCounterPigJob++; |
| 1194 if (buildCounterPigJob < 3) { | 1175 if (buildCounterPigJob < 3) { |
| 1195 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1176 unittest.expect(o.continueOnFailure, unittest.isTrue); |
| 1196 checkUnnamed486(o.jarFileUris); | 1177 checkUnnamed84(o.jarFileUris); |
| 1197 checkLoggingConfig(o.loggingConfig); | 1178 checkLoggingConfig(o.loggingConfig); |
| 1198 checkUnnamed487(o.properties); | 1179 checkUnnamed85(o.properties); |
| 1199 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1180 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1200 checkQueryList(o.queryList); | 1181 checkQueryList(o.queryList); |
| 1201 checkUnnamed488(o.scriptVariables); | 1182 checkUnnamed86(o.scriptVariables); |
| 1202 } | 1183 } |
| 1203 buildCounterPigJob--; | 1184 buildCounterPigJob--; |
| 1204 } | 1185 } |
| 1205 | 1186 |
| 1206 buildUnnamed489() { | 1187 buildUnnamed87() { |
| 1207 var o = new core.List<core.String>(); | 1188 var o = new core.List<core.String>(); |
| 1208 o.add("foo"); | 1189 o.add("foo"); |
| 1209 o.add("foo"); | 1190 o.add("foo"); |
| 1210 return o; | 1191 return o; |
| 1211 } | 1192 } |
| 1212 | 1193 |
| 1213 checkUnnamed489(core.List<core.String> o) { | 1194 checkUnnamed87(core.List<core.String> o) { |
| 1214 unittest.expect(o, unittest.hasLength(2)); | 1195 unittest.expect(o, unittest.hasLength(2)); |
| 1215 unittest.expect(o[0], unittest.equals('foo')); | 1196 unittest.expect(o[0], unittest.equals('foo')); |
| 1216 unittest.expect(o[1], unittest.equals('foo')); | 1197 unittest.expect(o[1], unittest.equals('foo')); |
| 1217 } | 1198 } |
| 1218 | 1199 |
| 1219 buildUnnamed490() { | 1200 buildUnnamed88() { |
| 1220 var o = new core.List<core.String>(); | 1201 var o = new core.List<core.String>(); |
| 1221 o.add("foo"); | 1202 o.add("foo"); |
| 1222 o.add("foo"); | 1203 o.add("foo"); |
| 1223 return o; | 1204 return o; |
| 1224 } | 1205 } |
| 1225 | 1206 |
| 1226 checkUnnamed490(core.List<core.String> o) { | 1207 checkUnnamed88(core.List<core.String> o) { |
| 1227 unittest.expect(o, unittest.hasLength(2)); | 1208 unittest.expect(o, unittest.hasLength(2)); |
| 1228 unittest.expect(o[0], unittest.equals('foo')); | 1209 unittest.expect(o[0], unittest.equals('foo')); |
| 1229 unittest.expect(o[1], unittest.equals('foo')); | 1210 unittest.expect(o[1], unittest.equals('foo')); |
| 1230 } | 1211 } |
| 1231 | 1212 |
| 1232 buildUnnamed491() { | 1213 buildUnnamed89() { |
| 1233 var o = new core.List<core.String>(); | 1214 var o = new core.List<core.String>(); |
| 1234 o.add("foo"); | 1215 o.add("foo"); |
| 1235 o.add("foo"); | 1216 o.add("foo"); |
| 1236 return o; | 1217 return o; |
| 1237 } | 1218 } |
| 1238 | 1219 |
| 1239 checkUnnamed491(core.List<core.String> o) { | 1220 checkUnnamed89(core.List<core.String> o) { |
| 1240 unittest.expect(o, unittest.hasLength(2)); | 1221 unittest.expect(o, unittest.hasLength(2)); |
| 1241 unittest.expect(o[0], unittest.equals('foo')); | 1222 unittest.expect(o[0], unittest.equals('foo')); |
| 1242 unittest.expect(o[1], unittest.equals('foo')); | 1223 unittest.expect(o[1], unittest.equals('foo')); |
| 1243 } | 1224 } |
| 1244 | 1225 |
| 1245 buildUnnamed492() { | 1226 buildUnnamed90() { |
| 1246 var o = new core.List<core.String>(); | 1227 var o = new core.List<core.String>(); |
| 1247 o.add("foo"); | 1228 o.add("foo"); |
| 1248 o.add("foo"); | 1229 o.add("foo"); |
| 1249 return o; | 1230 return o; |
| 1250 } | 1231 } |
| 1251 | 1232 |
| 1252 checkUnnamed492(core.List<core.String> o) { | 1233 checkUnnamed90(core.List<core.String> o) { |
| 1253 unittest.expect(o, unittest.hasLength(2)); | 1234 unittest.expect(o, unittest.hasLength(2)); |
| 1254 unittest.expect(o[0], unittest.equals('foo')); | 1235 unittest.expect(o[0], unittest.equals('foo')); |
| 1255 unittest.expect(o[1], unittest.equals('foo')); | 1236 unittest.expect(o[1], unittest.equals('foo')); |
| 1256 } | 1237 } |
| 1257 | 1238 |
| 1258 buildUnnamed493() { | 1239 buildUnnamed91() { |
| 1259 var o = new core.Map<core.String, core.String>(); | 1240 var o = new core.Map<core.String, core.String>(); |
| 1260 o["x"] = "foo"; | 1241 o["x"] = "foo"; |
| 1261 o["y"] = "foo"; | 1242 o["y"] = "foo"; |
| 1262 return o; | 1243 return o; |
| 1263 } | 1244 } |
| 1264 | 1245 |
| 1265 checkUnnamed493(core.Map<core.String, core.String> o) { | 1246 checkUnnamed91(core.Map<core.String, core.String> o) { |
| 1266 unittest.expect(o, unittest.hasLength(2)); | 1247 unittest.expect(o, unittest.hasLength(2)); |
| 1267 unittest.expect(o["x"], unittest.equals('foo')); | 1248 unittest.expect(o["x"], unittest.equals('foo')); |
| 1268 unittest.expect(o["y"], unittest.equals('foo')); | 1249 unittest.expect(o["y"], unittest.equals('foo')); |
| 1269 } | 1250 } |
| 1270 | 1251 |
| 1271 buildUnnamed494() { | 1252 buildUnnamed92() { |
| 1272 var o = new core.List<core.String>(); | 1253 var o = new core.List<core.String>(); |
| 1273 o.add("foo"); | 1254 o.add("foo"); |
| 1274 o.add("foo"); | 1255 o.add("foo"); |
| 1275 return o; | 1256 return o; |
| 1276 } | 1257 } |
| 1277 | 1258 |
| 1278 checkUnnamed494(core.List<core.String> o) { | 1259 checkUnnamed92(core.List<core.String> o) { |
| 1279 unittest.expect(o, unittest.hasLength(2)); | 1260 unittest.expect(o, unittest.hasLength(2)); |
| 1280 unittest.expect(o[0], unittest.equals('foo')); | 1261 unittest.expect(o[0], unittest.equals('foo')); |
| 1281 unittest.expect(o[1], unittest.equals('foo')); | 1262 unittest.expect(o[1], unittest.equals('foo')); |
| 1282 } | 1263 } |
| 1283 | 1264 |
| 1284 core.int buildCounterPySparkJob = 0; | 1265 core.int buildCounterPySparkJob = 0; |
| 1285 buildPySparkJob() { | 1266 buildPySparkJob() { |
| 1286 var o = new api.PySparkJob(); | 1267 var o = new api.PySparkJob(); |
| 1287 buildCounterPySparkJob++; | 1268 buildCounterPySparkJob++; |
| 1288 if (buildCounterPySparkJob < 3) { | 1269 if (buildCounterPySparkJob < 3) { |
| 1289 o.archiveUris = buildUnnamed489(); | 1270 o.archiveUris = buildUnnamed87(); |
| 1290 o.args = buildUnnamed490(); | 1271 o.args = buildUnnamed88(); |
| 1291 o.fileUris = buildUnnamed491(); | 1272 o.fileUris = buildUnnamed89(); |
| 1292 o.jarFileUris = buildUnnamed492(); | 1273 o.jarFileUris = buildUnnamed90(); |
| 1293 o.loggingConfig = buildLoggingConfig(); | 1274 o.loggingConfig = buildLoggingConfig(); |
| 1294 o.mainPythonFileUri = "foo"; | 1275 o.mainPythonFileUri = "foo"; |
| 1295 o.properties = buildUnnamed493(); | 1276 o.properties = buildUnnamed91(); |
| 1296 o.pythonFileUris = buildUnnamed494(); | 1277 o.pythonFileUris = buildUnnamed92(); |
| 1297 } | 1278 } |
| 1298 buildCounterPySparkJob--; | 1279 buildCounterPySparkJob--; |
| 1299 return o; | 1280 return o; |
| 1300 } | 1281 } |
| 1301 | 1282 |
| 1302 checkPySparkJob(api.PySparkJob o) { | 1283 checkPySparkJob(api.PySparkJob o) { |
| 1303 buildCounterPySparkJob++; | 1284 buildCounterPySparkJob++; |
| 1304 if (buildCounterPySparkJob < 3) { | 1285 if (buildCounterPySparkJob < 3) { |
| 1305 checkUnnamed489(o.archiveUris); | 1286 checkUnnamed87(o.archiveUris); |
| 1306 checkUnnamed490(o.args); | 1287 checkUnnamed88(o.args); |
| 1307 checkUnnamed491(o.fileUris); | 1288 checkUnnamed89(o.fileUris); |
| 1308 checkUnnamed492(o.jarFileUris); | 1289 checkUnnamed90(o.jarFileUris); |
| 1309 checkLoggingConfig(o.loggingConfig); | 1290 checkLoggingConfig(o.loggingConfig); |
| 1310 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1291 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
| 1311 checkUnnamed493(o.properties); | 1292 checkUnnamed91(o.properties); |
| 1312 checkUnnamed494(o.pythonFileUris); | 1293 checkUnnamed92(o.pythonFileUris); |
| 1313 } | 1294 } |
| 1314 buildCounterPySparkJob--; | 1295 buildCounterPySparkJob--; |
| 1315 } | 1296 } |
| 1316 | 1297 |
| 1317 buildUnnamed495() { | 1298 buildUnnamed93() { |
| 1318 var o = new core.List<core.String>(); | 1299 var o = new core.List<core.String>(); |
| 1319 o.add("foo"); | 1300 o.add("foo"); |
| 1320 o.add("foo"); | 1301 o.add("foo"); |
| 1321 return o; | 1302 return o; |
| 1322 } | 1303 } |
| 1323 | 1304 |
| 1324 checkUnnamed495(core.List<core.String> o) { | 1305 checkUnnamed93(core.List<core.String> o) { |
| 1325 unittest.expect(o, unittest.hasLength(2)); | 1306 unittest.expect(o, unittest.hasLength(2)); |
| 1326 unittest.expect(o[0], unittest.equals('foo')); | 1307 unittest.expect(o[0], unittest.equals('foo')); |
| 1327 unittest.expect(o[1], unittest.equals('foo')); | 1308 unittest.expect(o[1], unittest.equals('foo')); |
| 1328 } | 1309 } |
| 1329 | 1310 |
| 1330 core.int buildCounterQueryList = 0; | 1311 core.int buildCounterQueryList = 0; |
| 1331 buildQueryList() { | 1312 buildQueryList() { |
| 1332 var o = new api.QueryList(); | 1313 var o = new api.QueryList(); |
| 1333 buildCounterQueryList++; | 1314 buildCounterQueryList++; |
| 1334 if (buildCounterQueryList < 3) { | 1315 if (buildCounterQueryList < 3) { |
| 1335 o.queries = buildUnnamed495(); | 1316 o.queries = buildUnnamed93(); |
| 1336 } | 1317 } |
| 1337 buildCounterQueryList--; | 1318 buildCounterQueryList--; |
| 1338 return o; | 1319 return o; |
| 1339 } | 1320 } |
| 1340 | 1321 |
| 1341 checkQueryList(api.QueryList o) { | 1322 checkQueryList(api.QueryList o) { |
| 1342 buildCounterQueryList++; | 1323 buildCounterQueryList++; |
| 1343 if (buildCounterQueryList < 3) { | 1324 if (buildCounterQueryList < 3) { |
| 1344 checkUnnamed495(o.queries); | 1325 checkUnnamed93(o.queries); |
| 1345 } | 1326 } |
| 1346 buildCounterQueryList--; | 1327 buildCounterQueryList--; |
| 1347 } | 1328 } |
| 1348 | 1329 |
| 1349 buildUnnamed496() { | 1330 buildUnnamed94() { |
| 1350 var o = new core.Map<core.String, core.String>(); | 1331 var o = new core.Map<core.String, core.String>(); |
| 1351 o["x"] = "foo"; | 1332 o["x"] = "foo"; |
| 1352 o["y"] = "foo"; | 1333 o["y"] = "foo"; |
| 1353 return o; | 1334 return o; |
| 1354 } | 1335 } |
| 1355 | 1336 |
| 1356 checkUnnamed496(core.Map<core.String, core.String> o) { | 1337 checkUnnamed94(core.Map<core.String, core.String> o) { |
| 1357 unittest.expect(o, unittest.hasLength(2)); | 1338 unittest.expect(o, unittest.hasLength(2)); |
| 1358 unittest.expect(o["x"], unittest.equals('foo')); | 1339 unittest.expect(o["x"], unittest.equals('foo')); |
| 1359 unittest.expect(o["y"], unittest.equals('foo')); | 1340 unittest.expect(o["y"], unittest.equals('foo')); |
| 1360 } | 1341 } |
| 1361 | 1342 |
| 1362 core.int buildCounterSoftwareConfig = 0; | 1343 core.int buildCounterSoftwareConfig = 0; |
| 1363 buildSoftwareConfig() { | 1344 buildSoftwareConfig() { |
| 1364 var o = new api.SoftwareConfig(); | 1345 var o = new api.SoftwareConfig(); |
| 1365 buildCounterSoftwareConfig++; | 1346 buildCounterSoftwareConfig++; |
| 1366 if (buildCounterSoftwareConfig < 3) { | 1347 if (buildCounterSoftwareConfig < 3) { |
| 1367 o.imageVersion = "foo"; | 1348 o.imageVersion = "foo"; |
| 1368 o.properties = buildUnnamed496(); | 1349 o.properties = buildUnnamed94(); |
| 1369 } | 1350 } |
| 1370 buildCounterSoftwareConfig--; | 1351 buildCounterSoftwareConfig--; |
| 1371 return o; | 1352 return o; |
| 1372 } | 1353 } |
| 1373 | 1354 |
| 1374 checkSoftwareConfig(api.SoftwareConfig o) { | 1355 checkSoftwareConfig(api.SoftwareConfig o) { |
| 1375 buildCounterSoftwareConfig++; | 1356 buildCounterSoftwareConfig++; |
| 1376 if (buildCounterSoftwareConfig < 3) { | 1357 if (buildCounterSoftwareConfig < 3) { |
| 1377 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1358 unittest.expect(o.imageVersion, unittest.equals('foo')); |
| 1378 checkUnnamed496(o.properties); | 1359 checkUnnamed94(o.properties); |
| 1379 } | 1360 } |
| 1380 buildCounterSoftwareConfig--; | 1361 buildCounterSoftwareConfig--; |
| 1381 } | 1362 } |
| 1382 | 1363 |
| 1383 buildUnnamed497() { | 1364 buildUnnamed95() { |
| 1384 var o = new core.List<core.String>(); | 1365 var o = new core.List<core.String>(); |
| 1385 o.add("foo"); | 1366 o.add("foo"); |
| 1386 o.add("foo"); | 1367 o.add("foo"); |
| 1387 return o; | 1368 return o; |
| 1388 } | 1369 } |
| 1389 | 1370 |
| 1390 checkUnnamed497(core.List<core.String> o) { | 1371 checkUnnamed95(core.List<core.String> o) { |
| 1391 unittest.expect(o, unittest.hasLength(2)); | 1372 unittest.expect(o, unittest.hasLength(2)); |
| 1392 unittest.expect(o[0], unittest.equals('foo')); | 1373 unittest.expect(o[0], unittest.equals('foo')); |
| 1393 unittest.expect(o[1], unittest.equals('foo')); | 1374 unittest.expect(o[1], unittest.equals('foo')); |
| 1394 } | 1375 } |
| 1395 | 1376 |
| 1396 buildUnnamed498() { | 1377 buildUnnamed96() { |
| 1397 var o = new core.List<core.String>(); | 1378 var o = new core.List<core.String>(); |
| 1398 o.add("foo"); | 1379 o.add("foo"); |
| 1399 o.add("foo"); | 1380 o.add("foo"); |
| 1400 return o; | 1381 return o; |
| 1401 } | 1382 } |
| 1402 | 1383 |
| 1403 checkUnnamed498(core.List<core.String> o) { | 1384 checkUnnamed96(core.List<core.String> o) { |
| 1404 unittest.expect(o, unittest.hasLength(2)); | 1385 unittest.expect(o, unittest.hasLength(2)); |
| 1405 unittest.expect(o[0], unittest.equals('foo')); | 1386 unittest.expect(o[0], unittest.equals('foo')); |
| 1406 unittest.expect(o[1], unittest.equals('foo')); | 1387 unittest.expect(o[1], unittest.equals('foo')); |
| 1407 } | 1388 } |
| 1408 | 1389 |
| 1409 buildUnnamed499() { | 1390 buildUnnamed97() { |
| 1410 var o = new core.List<core.String>(); | 1391 var o = new core.List<core.String>(); |
| 1411 o.add("foo"); | 1392 o.add("foo"); |
| 1412 o.add("foo"); | 1393 o.add("foo"); |
| 1413 return o; | 1394 return o; |
| 1414 } | 1395 } |
| 1415 | 1396 |
| 1416 checkUnnamed499(core.List<core.String> o) { | 1397 checkUnnamed97(core.List<core.String> o) { |
| 1417 unittest.expect(o, unittest.hasLength(2)); | 1398 unittest.expect(o, unittest.hasLength(2)); |
| 1418 unittest.expect(o[0], unittest.equals('foo')); | 1399 unittest.expect(o[0], unittest.equals('foo')); |
| 1419 unittest.expect(o[1], unittest.equals('foo')); | 1400 unittest.expect(o[1], unittest.equals('foo')); |
| 1420 } | 1401 } |
| 1421 | 1402 |
| 1422 buildUnnamed500() { | 1403 buildUnnamed98() { |
| 1423 var o = new core.List<core.String>(); | 1404 var o = new core.List<core.String>(); |
| 1424 o.add("foo"); | 1405 o.add("foo"); |
| 1425 o.add("foo"); | 1406 o.add("foo"); |
| 1426 return o; | 1407 return o; |
| 1427 } | 1408 } |
| 1428 | 1409 |
| 1429 checkUnnamed500(core.List<core.String> o) { | 1410 checkUnnamed98(core.List<core.String> o) { |
| 1430 unittest.expect(o, unittest.hasLength(2)); | 1411 unittest.expect(o, unittest.hasLength(2)); |
| 1431 unittest.expect(o[0], unittest.equals('foo')); | 1412 unittest.expect(o[0], unittest.equals('foo')); |
| 1432 unittest.expect(o[1], unittest.equals('foo')); | 1413 unittest.expect(o[1], unittest.equals('foo')); |
| 1433 } | 1414 } |
| 1434 | 1415 |
| 1435 buildUnnamed501() { | 1416 buildUnnamed99() { |
| 1436 var o = new core.Map<core.String, core.String>(); | 1417 var o = new core.Map<core.String, core.String>(); |
| 1437 o["x"] = "foo"; | 1418 o["x"] = "foo"; |
| 1438 o["y"] = "foo"; | 1419 o["y"] = "foo"; |
| 1439 return o; | 1420 return o; |
| 1440 } | 1421 } |
| 1441 | 1422 |
| 1442 checkUnnamed501(core.Map<core.String, core.String> o) { | 1423 checkUnnamed99(core.Map<core.String, core.String> o) { |
| 1443 unittest.expect(o, unittest.hasLength(2)); | 1424 unittest.expect(o, unittest.hasLength(2)); |
| 1444 unittest.expect(o["x"], unittest.equals('foo')); | 1425 unittest.expect(o["x"], unittest.equals('foo')); |
| 1445 unittest.expect(o["y"], unittest.equals('foo')); | 1426 unittest.expect(o["y"], unittest.equals('foo')); |
| 1446 } | 1427 } |
| 1447 | 1428 |
| 1448 core.int buildCounterSparkJob = 0; | 1429 core.int buildCounterSparkJob = 0; |
| 1449 buildSparkJob() { | 1430 buildSparkJob() { |
| 1450 var o = new api.SparkJob(); | 1431 var o = new api.SparkJob(); |
| 1451 buildCounterSparkJob++; | 1432 buildCounterSparkJob++; |
| 1452 if (buildCounterSparkJob < 3) { | 1433 if (buildCounterSparkJob < 3) { |
| 1453 o.archiveUris = buildUnnamed497(); | 1434 o.archiveUris = buildUnnamed95(); |
| 1454 o.args = buildUnnamed498(); | 1435 o.args = buildUnnamed96(); |
| 1455 o.fileUris = buildUnnamed499(); | 1436 o.fileUris = buildUnnamed97(); |
| 1456 o.jarFileUris = buildUnnamed500(); | 1437 o.jarFileUris = buildUnnamed98(); |
| 1457 o.loggingConfig = buildLoggingConfig(); | 1438 o.loggingConfig = buildLoggingConfig(); |
| 1458 o.mainClass = "foo"; | 1439 o.mainClass = "foo"; |
| 1459 o.mainJarFileUri = "foo"; | 1440 o.mainJarFileUri = "foo"; |
| 1460 o.properties = buildUnnamed501(); | 1441 o.properties = buildUnnamed99(); |
| 1461 } | 1442 } |
| 1462 buildCounterSparkJob--; | 1443 buildCounterSparkJob--; |
| 1463 return o; | 1444 return o; |
| 1464 } | 1445 } |
| 1465 | 1446 |
| 1466 checkSparkJob(api.SparkJob o) { | 1447 checkSparkJob(api.SparkJob o) { |
| 1467 buildCounterSparkJob++; | 1448 buildCounterSparkJob++; |
| 1468 if (buildCounterSparkJob < 3) { | 1449 if (buildCounterSparkJob < 3) { |
| 1469 checkUnnamed497(o.archiveUris); | 1450 checkUnnamed95(o.archiveUris); |
| 1470 checkUnnamed498(o.args); | 1451 checkUnnamed96(o.args); |
| 1471 checkUnnamed499(o.fileUris); | 1452 checkUnnamed97(o.fileUris); |
| 1472 checkUnnamed500(o.jarFileUris); | 1453 checkUnnamed98(o.jarFileUris); |
| 1473 checkLoggingConfig(o.loggingConfig); | 1454 checkLoggingConfig(o.loggingConfig); |
| 1474 unittest.expect(o.mainClass, unittest.equals('foo')); | 1455 unittest.expect(o.mainClass, unittest.equals('foo')); |
| 1475 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1456 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
| 1476 checkUnnamed501(o.properties); | 1457 checkUnnamed99(o.properties); |
| 1477 } | 1458 } |
| 1478 buildCounterSparkJob--; | 1459 buildCounterSparkJob--; |
| 1479 } | 1460 } |
| 1480 | 1461 |
| 1481 buildUnnamed502() { | 1462 buildUnnamed100() { |
| 1482 var o = new core.List<core.String>(); | 1463 var o = new core.List<core.String>(); |
| 1483 o.add("foo"); | 1464 o.add("foo"); |
| 1484 o.add("foo"); | 1465 o.add("foo"); |
| 1485 return o; | 1466 return o; |
| 1486 } | 1467 } |
| 1487 | 1468 |
| 1488 checkUnnamed502(core.List<core.String> o) { | 1469 checkUnnamed100(core.List<core.String> o) { |
| 1489 unittest.expect(o, unittest.hasLength(2)); | 1470 unittest.expect(o, unittest.hasLength(2)); |
| 1490 unittest.expect(o[0], unittest.equals('foo')); | 1471 unittest.expect(o[0], unittest.equals('foo')); |
| 1491 unittest.expect(o[1], unittest.equals('foo')); | 1472 unittest.expect(o[1], unittest.equals('foo')); |
| 1492 } | 1473 } |
| 1493 | 1474 |
| 1494 buildUnnamed503() { | 1475 buildUnnamed101() { |
| 1495 var o = new core.Map<core.String, core.String>(); | 1476 var o = new core.Map<core.String, core.String>(); |
| 1496 o["x"] = "foo"; | 1477 o["x"] = "foo"; |
| 1497 o["y"] = "foo"; | 1478 o["y"] = "foo"; |
| 1498 return o; | 1479 return o; |
| 1499 } | 1480 } |
| 1500 | 1481 |
| 1501 checkUnnamed503(core.Map<core.String, core.String> o) { | 1482 checkUnnamed101(core.Map<core.String, core.String> o) { |
| 1502 unittest.expect(o, unittest.hasLength(2)); | 1483 unittest.expect(o, unittest.hasLength(2)); |
| 1503 unittest.expect(o["x"], unittest.equals('foo')); | 1484 unittest.expect(o["x"], unittest.equals('foo')); |
| 1504 unittest.expect(o["y"], unittest.equals('foo')); | 1485 unittest.expect(o["y"], unittest.equals('foo')); |
| 1505 } | 1486 } |
| 1506 | 1487 |
| 1507 buildUnnamed504() { | 1488 buildUnnamed102() { |
| 1508 var o = new core.Map<core.String, core.String>(); | 1489 var o = new core.Map<core.String, core.String>(); |
| 1509 o["x"] = "foo"; | 1490 o["x"] = "foo"; |
| 1510 o["y"] = "foo"; | 1491 o["y"] = "foo"; |
| 1511 return o; | 1492 return o; |
| 1512 } | 1493 } |
| 1513 | 1494 |
| 1514 checkUnnamed504(core.Map<core.String, core.String> o) { | 1495 checkUnnamed102(core.Map<core.String, core.String> o) { |
| 1515 unittest.expect(o, unittest.hasLength(2)); | 1496 unittest.expect(o, unittest.hasLength(2)); |
| 1516 unittest.expect(o["x"], unittest.equals('foo')); | 1497 unittest.expect(o["x"], unittest.equals('foo')); |
| 1517 unittest.expect(o["y"], unittest.equals('foo')); | 1498 unittest.expect(o["y"], unittest.equals('foo')); |
| 1518 } | 1499 } |
| 1519 | 1500 |
| 1520 core.int buildCounterSparkSqlJob = 0; | 1501 core.int buildCounterSparkSqlJob = 0; |
| 1521 buildSparkSqlJob() { | 1502 buildSparkSqlJob() { |
| 1522 var o = new api.SparkSqlJob(); | 1503 var o = new api.SparkSqlJob(); |
| 1523 buildCounterSparkSqlJob++; | 1504 buildCounterSparkSqlJob++; |
| 1524 if (buildCounterSparkSqlJob < 3) { | 1505 if (buildCounterSparkSqlJob < 3) { |
| 1525 o.jarFileUris = buildUnnamed502(); | 1506 o.jarFileUris = buildUnnamed100(); |
| 1526 o.loggingConfig = buildLoggingConfig(); | 1507 o.loggingConfig = buildLoggingConfig(); |
| 1527 o.properties = buildUnnamed503(); | 1508 o.properties = buildUnnamed101(); |
| 1528 o.queryFileUri = "foo"; | 1509 o.queryFileUri = "foo"; |
| 1529 o.queryList = buildQueryList(); | 1510 o.queryList = buildQueryList(); |
| 1530 o.scriptVariables = buildUnnamed504(); | 1511 o.scriptVariables = buildUnnamed102(); |
| 1531 } | 1512 } |
| 1532 buildCounterSparkSqlJob--; | 1513 buildCounterSparkSqlJob--; |
| 1533 return o; | 1514 return o; |
| 1534 } | 1515 } |
| 1535 | 1516 |
| 1536 checkSparkSqlJob(api.SparkSqlJob o) { | 1517 checkSparkSqlJob(api.SparkSqlJob o) { |
| 1537 buildCounterSparkSqlJob++; | 1518 buildCounterSparkSqlJob++; |
| 1538 if (buildCounterSparkSqlJob < 3) { | 1519 if (buildCounterSparkSqlJob < 3) { |
| 1539 checkUnnamed502(o.jarFileUris); | 1520 checkUnnamed100(o.jarFileUris); |
| 1540 checkLoggingConfig(o.loggingConfig); | 1521 checkLoggingConfig(o.loggingConfig); |
| 1541 checkUnnamed503(o.properties); | 1522 checkUnnamed101(o.properties); |
| 1542 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1523 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
| 1543 checkQueryList(o.queryList); | 1524 checkQueryList(o.queryList); |
| 1544 checkUnnamed504(o.scriptVariables); | 1525 checkUnnamed102(o.scriptVariables); |
| 1545 } | 1526 } |
| 1546 buildCounterSparkSqlJob--; | 1527 buildCounterSparkSqlJob--; |
| 1547 } | 1528 } |
| 1548 | 1529 |
| 1549 buildUnnamed505() { | 1530 buildUnnamed103() { |
| 1550 var o = new core.Map<core.String, core.Object>(); | 1531 var o = new core.Map<core.String, core.Object>(); |
| 1551 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1532 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1552 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1533 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1553 return o; | 1534 return o; |
| 1554 } | 1535 } |
| 1555 | 1536 |
| 1556 checkUnnamed505(core.Map<core.String, core.Object> o) { | 1537 checkUnnamed103(core.Map<core.String, core.Object> o) { |
| 1557 unittest.expect(o, unittest.hasLength(2)); | 1538 unittest.expect(o, unittest.hasLength(2)); |
| 1558 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')); | 1539 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')); |
| 1559 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')); | 1540 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')); |
| 1560 } | 1541 } |
| 1561 | 1542 |
| 1562 buildUnnamed506() { | 1543 buildUnnamed104() { |
| 1563 var o = new core.List<core.Map<core.String, core.Object>>(); | 1544 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1564 o.add(buildUnnamed505()); | 1545 o.add(buildUnnamed103()); |
| 1565 o.add(buildUnnamed505()); | 1546 o.add(buildUnnamed103()); |
| 1566 return o; | 1547 return o; |
| 1567 } | 1548 } |
| 1568 | 1549 |
| 1569 checkUnnamed506(core.List<core.Map<core.String, core.Object>> o) { | 1550 checkUnnamed104(core.List<core.Map<core.String, core.Object>> o) { |
| 1570 unittest.expect(o, unittest.hasLength(2)); | 1551 unittest.expect(o, unittest.hasLength(2)); |
| 1571 checkUnnamed505(o[0]); | 1552 checkUnnamed103(o[0]); |
| 1572 checkUnnamed505(o[1]); | 1553 checkUnnamed103(o[1]); |
| 1573 } | 1554 } |
| 1574 | 1555 |
| 1575 core.int buildCounterStatus = 0; | 1556 core.int buildCounterStatus = 0; |
| 1576 buildStatus() { | 1557 buildStatus() { |
| 1577 var o = new api.Status(); | 1558 var o = new api.Status(); |
| 1578 buildCounterStatus++; | 1559 buildCounterStatus++; |
| 1579 if (buildCounterStatus < 3) { | 1560 if (buildCounterStatus < 3) { |
| 1580 o.code = 42; | 1561 o.code = 42; |
| 1581 o.details = buildUnnamed506(); | 1562 o.details = buildUnnamed104(); |
| 1582 o.message = "foo"; | 1563 o.message = "foo"; |
| 1583 } | 1564 } |
| 1584 buildCounterStatus--; | 1565 buildCounterStatus--; |
| 1585 return o; | 1566 return o; |
| 1586 } | 1567 } |
| 1587 | 1568 |
| 1588 checkStatus(api.Status o) { | 1569 checkStatus(api.Status o) { |
| 1589 buildCounterStatus++; | 1570 buildCounterStatus++; |
| 1590 if (buildCounterStatus < 3) { | 1571 if (buildCounterStatus < 3) { |
| 1591 unittest.expect(o.code, unittest.equals(42)); | 1572 unittest.expect(o.code, unittest.equals(42)); |
| 1592 checkUnnamed506(o.details); | 1573 checkUnnamed104(o.details); |
| 1593 unittest.expect(o.message, unittest.equals('foo')); | 1574 unittest.expect(o.message, unittest.equals('foo')); |
| 1594 } | 1575 } |
| 1595 buildCounterStatus--; | 1576 buildCounterStatus--; |
| 1596 } | 1577 } |
| 1597 | 1578 |
| 1598 core.int buildCounterSubmitJobRequest = 0; | 1579 core.int buildCounterSubmitJobRequest = 0; |
| 1599 buildSubmitJobRequest() { | 1580 buildSubmitJobRequest() { |
| 1600 var o = new api.SubmitJobRequest(); | 1581 var o = new api.SubmitJobRequest(); |
| 1601 buildCounterSubmitJobRequest++; | 1582 buildCounterSubmitJobRequest++; |
| 1602 if (buildCounterSubmitJobRequest < 3) { | 1583 if (buildCounterSubmitJobRequest < 3) { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1715 | 1696 |
| 1716 unittest.group("obj-schema-DiagnoseClusterRequest", () { | 1697 unittest.group("obj-schema-DiagnoseClusterRequest", () { |
| 1717 unittest.test("to-json--from-json", () { | 1698 unittest.test("to-json--from-json", () { |
| 1718 var o = buildDiagnoseClusterRequest(); | 1699 var o = buildDiagnoseClusterRequest(); |
| 1719 var od = new api.DiagnoseClusterRequest.fromJson(o.toJson()); | 1700 var od = new api.DiagnoseClusterRequest.fromJson(o.toJson()); |
| 1720 checkDiagnoseClusterRequest(od); | 1701 checkDiagnoseClusterRequest(od); |
| 1721 }); | 1702 }); |
| 1722 }); | 1703 }); |
| 1723 | 1704 |
| 1724 | 1705 |
| 1725 unittest.group("obj-schema-DiagnoseClusterResults", () { | |
| 1726 unittest.test("to-json--from-json", () { | |
| 1727 var o = buildDiagnoseClusterResults(); | |
| 1728 var od = new api.DiagnoseClusterResults.fromJson(o.toJson()); | |
| 1729 checkDiagnoseClusterResults(od); | |
| 1730 }); | |
| 1731 }); | |
| 1732 | |
| 1733 | |
| 1734 unittest.group("obj-schema-DiskConfig", () { | 1706 unittest.group("obj-schema-DiskConfig", () { |
| 1735 unittest.test("to-json--from-json", () { | 1707 unittest.test("to-json--from-json", () { |
| 1736 var o = buildDiskConfig(); | 1708 var o = buildDiskConfig(); |
| 1737 var od = new api.DiskConfig.fromJson(o.toJson()); | 1709 var od = new api.DiskConfig.fromJson(o.toJson()); |
| 1738 checkDiskConfig(od); | 1710 checkDiskConfig(od); |
| 1739 }); | 1711 }); |
| 1740 }); | 1712 }); |
| 1741 | 1713 |
| 1742 | 1714 |
| 1743 unittest.group("obj-schema-Empty", () { | 1715 unittest.group("obj-schema-Empty", () { |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1985 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 1957 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1986 var obj = new api.Cluster.fromJson(json); | 1958 var obj = new api.Cluster.fromJson(json); |
| 1987 checkCluster(obj); | 1959 checkCluster(obj); |
| 1988 | 1960 |
| 1989 var path = (req.url).path; | 1961 var path = (req.url).path; |
| 1990 var pathOffset = 0; | 1962 var pathOffset = 0; |
| 1991 var index; | 1963 var index; |
| 1992 var subPart; | 1964 var subPart; |
| 1993 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1965 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1994 pathOffset += 1; | 1966 pathOffset += 1; |
| 1995 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 1967 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 1996 pathOffset += 12; | 1968 pathOffset += 17; |
| 1997 index = path.indexOf("/regions/", pathOffset); | 1969 index = path.indexOf("/regions/", pathOffset); |
| 1998 unittest.expect(index >= 0, unittest.isTrue); | 1970 unittest.expect(index >= 0, unittest.isTrue); |
| 1999 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1971 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2000 pathOffset = index; | 1972 pathOffset = index; |
| 2001 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 1973 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2002 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 1974 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2003 pathOffset += 9; | 1975 pathOffset += 9; |
| 2004 index = path.indexOf("/clusters", pathOffset); | 1976 index = path.indexOf("/clusters", pathOffset); |
| 2005 unittest.expect(index >= 0, unittest.isTrue); | 1977 unittest.expect(index >= 0, unittest.isTrue); |
| 2006 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1978 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2045 var arg_projectId = "foo"; | 2017 var arg_projectId = "foo"; |
| 2046 var arg_region = "foo"; | 2018 var arg_region = "foo"; |
| 2047 var arg_clusterName = "foo"; | 2019 var arg_clusterName = "foo"; |
| 2048 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2020 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2049 var path = (req.url).path; | 2021 var path = (req.url).path; |
| 2050 var pathOffset = 0; | 2022 var pathOffset = 0; |
| 2051 var index; | 2023 var index; |
| 2052 var subPart; | 2024 var subPart; |
| 2053 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2025 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2054 pathOffset += 1; | 2026 pathOffset += 1; |
| 2055 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2027 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2056 pathOffset += 12; | 2028 pathOffset += 17; |
| 2057 index = path.indexOf("/regions/", pathOffset); | 2029 index = path.indexOf("/regions/", pathOffset); |
| 2058 unittest.expect(index >= 0, unittest.isTrue); | 2030 unittest.expect(index >= 0, unittest.isTrue); |
| 2059 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2031 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2060 pathOffset = index; | 2032 pathOffset = index; |
| 2061 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2033 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2062 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2034 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2063 pathOffset += 9; | 2035 pathOffset += 9; |
| 2064 index = path.indexOf("/clusters/", pathOffset); | 2036 index = path.indexOf("/clusters/", pathOffset); |
| 2065 unittest.expect(index >= 0, unittest.isTrue); | 2037 unittest.expect(index >= 0, unittest.isTrue); |
| 2066 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2038 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2112 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2084 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2113 var obj = new api.DiagnoseClusterRequest.fromJson(json); | 2085 var obj = new api.DiagnoseClusterRequest.fromJson(json); |
| 2114 checkDiagnoseClusterRequest(obj); | 2086 checkDiagnoseClusterRequest(obj); |
| 2115 | 2087 |
| 2116 var path = (req.url).path; | 2088 var path = (req.url).path; |
| 2117 var pathOffset = 0; | 2089 var pathOffset = 0; |
| 2118 var index; | 2090 var index; |
| 2119 var subPart; | 2091 var subPart; |
| 2120 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2092 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2121 pathOffset += 1; | 2093 pathOffset += 1; |
| 2122 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2094 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2123 pathOffset += 12; | 2095 pathOffset += 17; |
| 2124 index = path.indexOf("/regions/", pathOffset); | 2096 index = path.indexOf("/regions/", pathOffset); |
| 2125 unittest.expect(index >= 0, unittest.isTrue); | 2097 unittest.expect(index >= 0, unittest.isTrue); |
| 2126 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2098 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2127 pathOffset = index; | 2099 pathOffset = index; |
| 2128 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2100 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2129 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2101 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2130 pathOffset += 9; | 2102 pathOffset += 9; |
| 2131 index = path.indexOf("/clusters/", pathOffset); | 2103 index = path.indexOf("/clusters/", pathOffset); |
| 2132 unittest.expect(index >= 0, unittest.isTrue); | 2104 unittest.expect(index >= 0, unittest.isTrue); |
| 2133 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2105 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2179 var arg_projectId = "foo"; | 2151 var arg_projectId = "foo"; |
| 2180 var arg_region = "foo"; | 2152 var arg_region = "foo"; |
| 2181 var arg_clusterName = "foo"; | 2153 var arg_clusterName = "foo"; |
| 2182 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2154 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2183 var path = (req.url).path; | 2155 var path = (req.url).path; |
| 2184 var pathOffset = 0; | 2156 var pathOffset = 0; |
| 2185 var index; | 2157 var index; |
| 2186 var subPart; | 2158 var subPart; |
| 2187 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2159 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2188 pathOffset += 1; | 2160 pathOffset += 1; |
| 2189 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2161 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2190 pathOffset += 12; | 2162 pathOffset += 17; |
| 2191 index = path.indexOf("/regions/", pathOffset); | 2163 index = path.indexOf("/regions/", pathOffset); |
| 2192 unittest.expect(index >= 0, unittest.isTrue); | 2164 unittest.expect(index >= 0, unittest.isTrue); |
| 2193 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2165 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2194 pathOffset = index; | 2166 pathOffset = index; |
| 2195 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2167 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2196 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2168 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2197 pathOffset += 9; | 2169 pathOffset += 9; |
| 2198 index = path.indexOf("/clusters/", pathOffset); | 2170 index = path.indexOf("/clusters/", pathOffset); |
| 2199 unittest.expect(index >= 0, unittest.isTrue); | 2171 unittest.expect(index >= 0, unittest.isTrue); |
| 2200 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2172 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2244 var arg_filter = "foo"; | 2216 var arg_filter = "foo"; |
| 2245 var arg_pageToken = "foo"; | 2217 var arg_pageToken = "foo"; |
| 2246 var arg_pageSize = 42; | 2218 var arg_pageSize = 42; |
| 2247 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2219 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2248 var path = (req.url).path; | 2220 var path = (req.url).path; |
| 2249 var pathOffset = 0; | 2221 var pathOffset = 0; |
| 2250 var index; | 2222 var index; |
| 2251 var subPart; | 2223 var subPart; |
| 2252 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2224 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2253 pathOffset += 1; | 2225 pathOffset += 1; |
| 2254 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2226 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2255 pathOffset += 12; | 2227 pathOffset += 17; |
| 2256 index = path.indexOf("/regions/", pathOffset); | 2228 index = path.indexOf("/regions/", pathOffset); |
| 2257 unittest.expect(index >= 0, unittest.isTrue); | 2229 unittest.expect(index >= 0, unittest.isTrue); |
| 2258 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2230 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2259 pathOffset = index; | 2231 pathOffset = index; |
| 2260 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2232 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2261 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2233 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2262 pathOffset += 9; | 2234 pathOffset += 9; |
| 2263 index = path.indexOf("/clusters", pathOffset); | 2235 index = path.indexOf("/clusters", pathOffset); |
| 2264 unittest.expect(index >= 0, unittest.isTrue); | 2236 unittest.expect(index >= 0, unittest.isTrue); |
| 2265 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2237 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2312 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2284 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2313 var obj = new api.Cluster.fromJson(json); | 2285 var obj = new api.Cluster.fromJson(json); |
| 2314 checkCluster(obj); | 2286 checkCluster(obj); |
| 2315 | 2287 |
| 2316 var path = (req.url).path; | 2288 var path = (req.url).path; |
| 2317 var pathOffset = 0; | 2289 var pathOffset = 0; |
| 2318 var index; | 2290 var index; |
| 2319 var subPart; | 2291 var subPart; |
| 2320 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2292 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2321 pathOffset += 1; | 2293 pathOffset += 1; |
| 2322 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2294 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2323 pathOffset += 12; | 2295 pathOffset += 17; |
| 2324 index = path.indexOf("/regions/", pathOffset); | 2296 index = path.indexOf("/regions/", pathOffset); |
| 2325 unittest.expect(index >= 0, unittest.isTrue); | 2297 unittest.expect(index >= 0, unittest.isTrue); |
| 2326 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2298 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2327 pathOffset = index; | 2299 pathOffset = index; |
| 2328 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2300 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2329 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2301 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2330 pathOffset += 9; | 2302 pathOffset += 9; |
| 2331 index = path.indexOf("/clusters/", pathOffset); | 2303 index = path.indexOf("/clusters/", pathOffset); |
| 2332 unittest.expect(index >= 0, unittest.isTrue); | 2304 unittest.expect(index >= 0, unittest.isTrue); |
| 2333 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2305 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2384 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2356 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2385 var obj = new api.CancelJobRequest.fromJson(json); | 2357 var obj = new api.CancelJobRequest.fromJson(json); |
| 2386 checkCancelJobRequest(obj); | 2358 checkCancelJobRequest(obj); |
| 2387 | 2359 |
| 2388 var path = (req.url).path; | 2360 var path = (req.url).path; |
| 2389 var pathOffset = 0; | 2361 var pathOffset = 0; |
| 2390 var index; | 2362 var index; |
| 2391 var subPart; | 2363 var subPart; |
| 2392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2364 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2393 pathOffset += 1; | 2365 pathOffset += 1; |
| 2394 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2366 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2395 pathOffset += 12; | 2367 pathOffset += 17; |
| 2396 index = path.indexOf("/regions/", pathOffset); | 2368 index = path.indexOf("/regions/", pathOffset); |
| 2397 unittest.expect(index >= 0, unittest.isTrue); | 2369 unittest.expect(index >= 0, unittest.isTrue); |
| 2398 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2370 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2399 pathOffset = index; | 2371 pathOffset = index; |
| 2400 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2372 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2401 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2373 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2402 pathOffset += 9; | 2374 pathOffset += 9; |
| 2403 index = path.indexOf("/jobs/", pathOffset); | 2375 index = path.indexOf("/jobs/", pathOffset); |
| 2404 unittest.expect(index >= 0, unittest.isTrue); | 2376 unittest.expect(index >= 0, unittest.isTrue); |
| 2405 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2377 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2451 var arg_projectId = "foo"; | 2423 var arg_projectId = "foo"; |
| 2452 var arg_region = "foo"; | 2424 var arg_region = "foo"; |
| 2453 var arg_jobId = "foo"; | 2425 var arg_jobId = "foo"; |
| 2454 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2426 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2455 var path = (req.url).path; | 2427 var path = (req.url).path; |
| 2456 var pathOffset = 0; | 2428 var pathOffset = 0; |
| 2457 var index; | 2429 var index; |
| 2458 var subPart; | 2430 var subPart; |
| 2459 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2431 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2460 pathOffset += 1; | 2432 pathOffset += 1; |
| 2461 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2433 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2462 pathOffset += 12; | 2434 pathOffset += 17; |
| 2463 index = path.indexOf("/regions/", pathOffset); | 2435 index = path.indexOf("/regions/", pathOffset); |
| 2464 unittest.expect(index >= 0, unittest.isTrue); | 2436 unittest.expect(index >= 0, unittest.isTrue); |
| 2465 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2437 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2466 pathOffset = index; | 2438 pathOffset = index; |
| 2467 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2439 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2468 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2440 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2469 pathOffset += 9; | 2441 pathOffset += 9; |
| 2470 index = path.indexOf("/jobs/", pathOffset); | 2442 index = path.indexOf("/jobs/", pathOffset); |
| 2471 unittest.expect(index >= 0, unittest.isTrue); | 2443 unittest.expect(index >= 0, unittest.isTrue); |
| 2472 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2444 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2514 var arg_projectId = "foo"; | 2486 var arg_projectId = "foo"; |
| 2515 var arg_region = "foo"; | 2487 var arg_region = "foo"; |
| 2516 var arg_jobId = "foo"; | 2488 var arg_jobId = "foo"; |
| 2517 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2489 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2518 var path = (req.url).path; | 2490 var path = (req.url).path; |
| 2519 var pathOffset = 0; | 2491 var pathOffset = 0; |
| 2520 var index; | 2492 var index; |
| 2521 var subPart; | 2493 var subPart; |
| 2522 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2494 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2523 pathOffset += 1; | 2495 pathOffset += 1; |
| 2524 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2496 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2525 pathOffset += 12; | 2497 pathOffset += 17; |
| 2526 index = path.indexOf("/regions/", pathOffset); | 2498 index = path.indexOf("/regions/", pathOffset); |
| 2527 unittest.expect(index >= 0, unittest.isTrue); | 2499 unittest.expect(index >= 0, unittest.isTrue); |
| 2528 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2500 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2529 pathOffset = index; | 2501 pathOffset = index; |
| 2530 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2502 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2531 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2503 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2532 pathOffset += 9; | 2504 pathOffset += 9; |
| 2533 index = path.indexOf("/jobs/", pathOffset); | 2505 index = path.indexOf("/jobs/", pathOffset); |
| 2534 unittest.expect(index >= 0, unittest.isTrue); | 2506 unittest.expect(index >= 0, unittest.isTrue); |
| 2535 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2507 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2581 var arg_pageToken = "foo"; | 2553 var arg_pageToken = "foo"; |
| 2582 var arg_pageSize = 42; | 2554 var arg_pageSize = 42; |
| 2583 var arg_clusterName = "foo"; | 2555 var arg_clusterName = "foo"; |
| 2584 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2556 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2585 var path = (req.url).path; | 2557 var path = (req.url).path; |
| 2586 var pathOffset = 0; | 2558 var pathOffset = 0; |
| 2587 var index; | 2559 var index; |
| 2588 var subPart; | 2560 var subPart; |
| 2589 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2561 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2590 pathOffset += 1; | 2562 pathOffset += 1; |
| 2591 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2563 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2592 pathOffset += 12; | 2564 pathOffset += 17; |
| 2593 index = path.indexOf("/regions/", pathOffset); | 2565 index = path.indexOf("/regions/", pathOffset); |
| 2594 unittest.expect(index >= 0, unittest.isTrue); | 2566 unittest.expect(index >= 0, unittest.isTrue); |
| 2595 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2567 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2596 pathOffset = index; | 2568 pathOffset = index; |
| 2597 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2569 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2598 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2570 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2599 pathOffset += 9; | 2571 pathOffset += 9; |
| 2600 index = path.indexOf("/jobs", pathOffset); | 2572 index = path.indexOf("/jobs", pathOffset); |
| 2601 unittest.expect(index >= 0, unittest.isTrue); | 2573 unittest.expect(index >= 0, unittest.isTrue); |
| 2602 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2574 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2651 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2623 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2652 var obj = new api.Job.fromJson(json); | 2624 var obj = new api.Job.fromJson(json); |
| 2653 checkJob(obj); | 2625 checkJob(obj); |
| 2654 | 2626 |
| 2655 var path = (req.url).path; | 2627 var path = (req.url).path; |
| 2656 var pathOffset = 0; | 2628 var pathOffset = 0; |
| 2657 var index; | 2629 var index; |
| 2658 var subPart; | 2630 var subPart; |
| 2659 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2631 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2660 pathOffset += 1; | 2632 pathOffset += 1; |
| 2661 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2633 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2662 pathOffset += 12; | 2634 pathOffset += 17; |
| 2663 index = path.indexOf("/regions/", pathOffset); | 2635 index = path.indexOf("/regions/", pathOffset); |
| 2664 unittest.expect(index >= 0, unittest.isTrue); | 2636 unittest.expect(index >= 0, unittest.isTrue); |
| 2665 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2637 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2666 pathOffset = index; | 2638 pathOffset = index; |
| 2667 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2639 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2668 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2640 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2669 pathOffset += 9; | 2641 pathOffset += 9; |
| 2670 index = path.indexOf("/jobs/", pathOffset); | 2642 index = path.indexOf("/jobs/", pathOffset); |
| 2671 unittest.expect(index >= 0, unittest.isTrue); | 2643 unittest.expect(index >= 0, unittest.isTrue); |
| 2672 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2644 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2718 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2690 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2719 var obj = new api.SubmitJobRequest.fromJson(json); | 2691 var obj = new api.SubmitJobRequest.fromJson(json); |
| 2720 checkSubmitJobRequest(obj); | 2692 checkSubmitJobRequest(obj); |
| 2721 | 2693 |
| 2722 var path = (req.url).path; | 2694 var path = (req.url).path; |
| 2723 var pathOffset = 0; | 2695 var pathOffset = 0; |
| 2724 var index; | 2696 var index; |
| 2725 var subPart; | 2697 var subPart; |
| 2726 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2698 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2727 pathOffset += 1; | 2699 pathOffset += 1; |
| 2728 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2700 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta2/projects/")); |
| 2729 pathOffset += 12; | 2701 pathOffset += 17; |
| 2730 index = path.indexOf("/regions/", pathOffset); | 2702 index = path.indexOf("/regions/", pathOffset); |
| 2731 unittest.expect(index >= 0, unittest.isTrue); | 2703 unittest.expect(index >= 0, unittest.isTrue); |
| 2732 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2704 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2733 pathOffset = index; | 2705 pathOffset = index; |
| 2734 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 2706 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 2735 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); | 2707 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/regions/")); |
| 2736 pathOffset += 9; | 2708 pathOffset += 9; |
| 2737 index = path.indexOf("/jobs:submit", pathOffset); | 2709 index = path.indexOf("/jobs:submit", pathOffset); |
| 2738 unittest.expect(index >= 0, unittest.isTrue); | 2710 unittest.expect(index >= 0, unittest.isTrue); |
| 2739 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2711 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2780 var mock = new HttpServerMock(); | 2752 var mock = new HttpServerMock(); |
| 2781 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 2753 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
| 2782 var arg_name = "foo"; | 2754 var arg_name = "foo"; |
| 2783 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2755 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2784 var path = (req.url).path; | 2756 var path = (req.url).path; |
| 2785 var pathOffset = 0; | 2757 var pathOffset = 0; |
| 2786 var index; | 2758 var index; |
| 2787 var subPart; | 2759 var subPart; |
| 2788 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2789 pathOffset += 1; | 2761 pathOffset += 1; |
| 2790 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2762 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); |
| 2791 pathOffset += 3; | 2763 pathOffset += 8; |
| 2792 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2764 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2793 | 2765 |
| 2794 var query = (req.url).query; | 2766 var query = (req.url).query; |
| 2795 var queryOffset = 0; | 2767 var queryOffset = 0; |
| 2796 var queryMap = {}; | 2768 var queryMap = {}; |
| 2797 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2769 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2798 parseBool(n) { | 2770 parseBool(n) { |
| 2799 if (n == "true") return true; | 2771 if (n == "true") return true; |
| 2800 if (n == "false") return false; | 2772 if (n == "false") return false; |
| 2801 if (n == null) return null; | 2773 if (n == null) return null; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2825 var mock = new HttpServerMock(); | 2797 var mock = new HttpServerMock(); |
| 2826 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 2798 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
| 2827 var arg_name = "foo"; | 2799 var arg_name = "foo"; |
| 2828 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2800 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2829 var path = (req.url).path; | 2801 var path = (req.url).path; |
| 2830 var pathOffset = 0; | 2802 var pathOffset = 0; |
| 2831 var index; | 2803 var index; |
| 2832 var subPart; | 2804 var subPart; |
| 2833 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2805 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2834 pathOffset += 1; | 2806 pathOffset += 1; |
| 2835 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2807 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); |
| 2836 pathOffset += 3; | 2808 pathOffset += 8; |
| 2837 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2809 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2838 | 2810 |
| 2839 var query = (req.url).query; | 2811 var query = (req.url).query; |
| 2840 var queryOffset = 0; | 2812 var queryOffset = 0; |
| 2841 var queryMap = {}; | 2813 var queryMap = {}; |
| 2842 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2814 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2843 parseBool(n) { | 2815 parseBool(n) { |
| 2844 if (n == "true") return true; | 2816 if (n == "true") return true; |
| 2845 if (n == "false") return false; | 2817 if (n == "false") return false; |
| 2846 if (n == null) return null; | 2818 if (n == null) return null; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2870 var mock = new HttpServerMock(); | 2842 var mock = new HttpServerMock(); |
| 2871 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 2843 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
| 2872 var arg_name = "foo"; | 2844 var arg_name = "foo"; |
| 2873 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2845 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2874 var path = (req.url).path; | 2846 var path = (req.url).path; |
| 2875 var pathOffset = 0; | 2847 var pathOffset = 0; |
| 2876 var index; | 2848 var index; |
| 2877 var subPart; | 2849 var subPart; |
| 2878 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2850 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2879 pathOffset += 1; | 2851 pathOffset += 1; |
| 2880 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2852 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); |
| 2881 pathOffset += 3; | 2853 pathOffset += 8; |
| 2882 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2854 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2883 | 2855 |
| 2884 var query = (req.url).query; | 2856 var query = (req.url).query; |
| 2885 var queryOffset = 0; | 2857 var queryOffset = 0; |
| 2886 var queryMap = {}; | 2858 var queryMap = {}; |
| 2887 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2859 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2888 parseBool(n) { | 2860 parseBool(n) { |
| 2889 if (n == "true") return true; | 2861 if (n == "true") return true; |
| 2890 if (n == "false") return false; | 2862 if (n == "false") return false; |
| 2891 if (n == null) return null; | 2863 if (n == null) return null; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2908 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { | 2880 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { |
| 2909 checkOperation(response); | 2881 checkOperation(response); |
| 2910 }))); | 2882 }))); |
| 2911 }); | 2883 }); |
| 2912 | 2884 |
| 2913 unittest.test("method--list", () { | 2885 unittest.test("method--list", () { |
| 2914 | 2886 |
| 2915 var mock = new HttpServerMock(); | 2887 var mock = new HttpServerMock(); |
| 2916 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 2888 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
| 2917 var arg_name = "foo"; | 2889 var arg_name = "foo"; |
| 2918 var arg_pageToken = "foo"; | |
| 2919 var arg_pageSize = 42; | 2890 var arg_pageSize = 42; |
| 2920 var arg_filter = "foo"; | 2891 var arg_filter = "foo"; |
| 2892 var arg_pageToken = "foo"; |
| 2921 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2893 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2922 var path = (req.url).path; | 2894 var path = (req.url).path; |
| 2923 var pathOffset = 0; | 2895 var pathOffset = 0; |
| 2924 var index; | 2896 var index; |
| 2925 var subPart; | 2897 var subPart; |
| 2926 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2898 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2927 pathOffset += 1; | 2899 pathOffset += 1; |
| 2928 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2900 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1beta2/")); |
| 2929 pathOffset += 3; | 2901 pathOffset += 8; |
| 2930 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2902 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 2931 | 2903 |
| 2932 var query = (req.url).query; | 2904 var query = (req.url).query; |
| 2933 var queryOffset = 0; | 2905 var queryOffset = 0; |
| 2934 var queryMap = {}; | 2906 var queryMap = {}; |
| 2935 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2907 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2936 parseBool(n) { | 2908 parseBool(n) { |
| 2937 if (n == "true") return true; | 2909 if (n == "true") return true; |
| 2938 if (n == "false") return false; | 2910 if (n == "false") return false; |
| 2939 if (n == null) return null; | 2911 if (n == null) return null; |
| 2940 throw new core.ArgumentError("Invalid boolean: $n"); | 2912 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2941 } | 2913 } |
| 2942 if (query.length > 0) { | 2914 if (query.length > 0) { |
| 2943 for (var part in query.split("&")) { | 2915 for (var part in query.split("&")) { |
| 2944 var keyvalue = part.split("="); | 2916 var keyvalue = part.split("="); |
| 2945 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2917 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2946 } | 2918 } |
| 2947 } | 2919 } |
| 2948 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 2949 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2920 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2950 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2921 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2922 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2951 | 2923 |
| 2952 | 2924 |
| 2953 var h = { | 2925 var h = { |
| 2954 "content-type" : "application/json; charset=utf-8", | 2926 "content-type" : "application/json; charset=utf-8", |
| 2955 }; | 2927 }; |
| 2956 var resp = convert.JSON.encode(buildListOperationsResponse()); | 2928 var resp = convert.JSON.encode(buildListOperationsResponse()); |
| 2957 return new async.Future.value(stringResponse(200, h, resp)); | 2929 return new async.Future.value(stringResponse(200, h, resp)); |
| 2958 }), true); | 2930 }), true); |
| 2959 res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filte
r: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response)
{ | 2931 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken:
arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response)
{ |
| 2960 checkListOperationsResponse(response); | 2932 checkListOperationsResponse(response); |
| 2961 }))); | 2933 }))); |
| 2962 }); | 2934 }); |
| 2963 | 2935 |
| 2964 }); | 2936 }); |
| 2965 | 2937 |
| 2966 | 2938 |
| 2967 } | 2939 } |
| 2968 | 2940 |
| OLD | NEW |