| OLD | NEW |
| 1 library googleapis_beta.datastore.v1beta3.test; | 1 library googleapis.datastore.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| 11 | 11 |
| 12 import 'package:googleapis_beta/datastore/v1beta3.dart' as api; | 12 import 'package:googleapis/datastore/v1.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 21 matching lines...) Expand all Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed3641() { | 54 buildUnnamed778() { |
| 55 var o = new core.List<api.Key>(); | 55 var o = new core.List<api.Key>(); |
| 56 o.add(buildKey()); | 56 o.add(buildKey()); |
| 57 o.add(buildKey()); | 57 o.add(buildKey()); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed3641(core.List<api.Key> o) { | 61 checkUnnamed778(core.List<api.Key> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 checkKey(o[0]); | 63 checkKey(o[0]); |
| 64 checkKey(o[1]); | 64 checkKey(o[1]); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterAllocateIdsRequest = 0; | 67 core.int buildCounterAllocateIdsRequest = 0; |
| 68 buildAllocateIdsRequest() { | 68 buildAllocateIdsRequest() { |
| 69 var o = new api.AllocateIdsRequest(); | 69 var o = new api.AllocateIdsRequest(); |
| 70 buildCounterAllocateIdsRequest++; | 70 buildCounterAllocateIdsRequest++; |
| 71 if (buildCounterAllocateIdsRequest < 3) { | 71 if (buildCounterAllocateIdsRequest < 3) { |
| 72 o.keys = buildUnnamed3641(); | 72 o.keys = buildUnnamed778(); |
| 73 } | 73 } |
| 74 buildCounterAllocateIdsRequest--; | 74 buildCounterAllocateIdsRequest--; |
| 75 return o; | 75 return o; |
| 76 } | 76 } |
| 77 | 77 |
| 78 checkAllocateIdsRequest(api.AllocateIdsRequest o) { | 78 checkAllocateIdsRequest(api.AllocateIdsRequest o) { |
| 79 buildCounterAllocateIdsRequest++; | 79 buildCounterAllocateIdsRequest++; |
| 80 if (buildCounterAllocateIdsRequest < 3) { | 80 if (buildCounterAllocateIdsRequest < 3) { |
| 81 checkUnnamed3641(o.keys); | 81 checkUnnamed778(o.keys); |
| 82 } | 82 } |
| 83 buildCounterAllocateIdsRequest--; | 83 buildCounterAllocateIdsRequest--; |
| 84 } | 84 } |
| 85 | 85 |
| 86 buildUnnamed3642() { | 86 buildUnnamed779() { |
| 87 var o = new core.List<api.Key>(); | 87 var o = new core.List<api.Key>(); |
| 88 o.add(buildKey()); | 88 o.add(buildKey()); |
| 89 o.add(buildKey()); | 89 o.add(buildKey()); |
| 90 return o; | 90 return o; |
| 91 } | 91 } |
| 92 | 92 |
| 93 checkUnnamed3642(core.List<api.Key> o) { | 93 checkUnnamed779(core.List<api.Key> o) { |
| 94 unittest.expect(o, unittest.hasLength(2)); | 94 unittest.expect(o, unittest.hasLength(2)); |
| 95 checkKey(o[0]); | 95 checkKey(o[0]); |
| 96 checkKey(o[1]); | 96 checkKey(o[1]); |
| 97 } | 97 } |
| 98 | 98 |
| 99 core.int buildCounterAllocateIdsResponse = 0; | 99 core.int buildCounterAllocateIdsResponse = 0; |
| 100 buildAllocateIdsResponse() { | 100 buildAllocateIdsResponse() { |
| 101 var o = new api.AllocateIdsResponse(); | 101 var o = new api.AllocateIdsResponse(); |
| 102 buildCounterAllocateIdsResponse++; | 102 buildCounterAllocateIdsResponse++; |
| 103 if (buildCounterAllocateIdsResponse < 3) { | 103 if (buildCounterAllocateIdsResponse < 3) { |
| 104 o.keys = buildUnnamed3642(); | 104 o.keys = buildUnnamed779(); |
| 105 } | 105 } |
| 106 buildCounterAllocateIdsResponse--; | 106 buildCounterAllocateIdsResponse--; |
| 107 return o; | 107 return o; |
| 108 } | 108 } |
| 109 | 109 |
| 110 checkAllocateIdsResponse(api.AllocateIdsResponse o) { | 110 checkAllocateIdsResponse(api.AllocateIdsResponse o) { |
| 111 buildCounterAllocateIdsResponse++; | 111 buildCounterAllocateIdsResponse++; |
| 112 if (buildCounterAllocateIdsResponse < 3) { | 112 if (buildCounterAllocateIdsResponse < 3) { |
| 113 checkUnnamed3642(o.keys); | 113 checkUnnamed779(o.keys); |
| 114 } | 114 } |
| 115 buildCounterAllocateIdsResponse--; | 115 buildCounterAllocateIdsResponse--; |
| 116 } | 116 } |
| 117 | 117 |
| 118 buildUnnamed3643() { | 118 buildUnnamed780() { |
| 119 var o = new core.List<api.Value>(); | 119 var o = new core.List<api.Value>(); |
| 120 o.add(buildValue()); | 120 o.add(buildValue()); |
| 121 o.add(buildValue()); | 121 o.add(buildValue()); |
| 122 return o; | 122 return o; |
| 123 } | 123 } |
| 124 | 124 |
| 125 checkUnnamed3643(core.List<api.Value> o) { | 125 checkUnnamed780(core.List<api.Value> o) { |
| 126 unittest.expect(o, unittest.hasLength(2)); | 126 unittest.expect(o, unittest.hasLength(2)); |
| 127 checkValue(o[0]); | 127 checkValue(o[0]); |
| 128 checkValue(o[1]); | 128 checkValue(o[1]); |
| 129 } | 129 } |
| 130 | 130 |
| 131 core.int buildCounterArrayValue = 0; | 131 core.int buildCounterArrayValue = 0; |
| 132 buildArrayValue() { | 132 buildArrayValue() { |
| 133 var o = new api.ArrayValue(); | 133 var o = new api.ArrayValue(); |
| 134 buildCounterArrayValue++; | 134 buildCounterArrayValue++; |
| 135 if (buildCounterArrayValue < 3) { | 135 if (buildCounterArrayValue < 3) { |
| 136 o.values = buildUnnamed3643(); | 136 o.values = buildUnnamed780(); |
| 137 } | 137 } |
| 138 buildCounterArrayValue--; | 138 buildCounterArrayValue--; |
| 139 return o; | 139 return o; |
| 140 } | 140 } |
| 141 | 141 |
| 142 checkArrayValue(api.ArrayValue o) { | 142 checkArrayValue(api.ArrayValue o) { |
| 143 buildCounterArrayValue++; | 143 buildCounterArrayValue++; |
| 144 if (buildCounterArrayValue < 3) { | 144 if (buildCounterArrayValue < 3) { |
| 145 checkUnnamed3643(o.values); | 145 checkUnnamed780(o.values); |
| 146 } | 146 } |
| 147 buildCounterArrayValue--; | 147 buildCounterArrayValue--; |
| 148 } | 148 } |
| 149 | 149 |
| 150 core.int buildCounterBeginTransactionRequest = 0; | 150 core.int buildCounterBeginTransactionRequest = 0; |
| 151 buildBeginTransactionRequest() { | 151 buildBeginTransactionRequest() { |
| 152 var o = new api.BeginTransactionRequest(); | 152 var o = new api.BeginTransactionRequest(); |
| 153 buildCounterBeginTransactionRequest++; | 153 buildCounterBeginTransactionRequest++; |
| 154 if (buildCounterBeginTransactionRequest < 3) { | 154 if (buildCounterBeginTransactionRequest < 3) { |
| 155 } | 155 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 176 } | 176 } |
| 177 | 177 |
| 178 checkBeginTransactionResponse(api.BeginTransactionResponse o) { | 178 checkBeginTransactionResponse(api.BeginTransactionResponse o) { |
| 179 buildCounterBeginTransactionResponse++; | 179 buildCounterBeginTransactionResponse++; |
| 180 if (buildCounterBeginTransactionResponse < 3) { | 180 if (buildCounterBeginTransactionResponse < 3) { |
| 181 unittest.expect(o.transaction, unittest.equals('foo')); | 181 unittest.expect(o.transaction, unittest.equals('foo')); |
| 182 } | 182 } |
| 183 buildCounterBeginTransactionResponse--; | 183 buildCounterBeginTransactionResponse--; |
| 184 } | 184 } |
| 185 | 185 |
| 186 buildUnnamed3644() { | 186 buildUnnamed781() { |
| 187 var o = new core.List<api.Mutation>(); | 187 var o = new core.List<api.Mutation>(); |
| 188 o.add(buildMutation()); | 188 o.add(buildMutation()); |
| 189 o.add(buildMutation()); | 189 o.add(buildMutation()); |
| 190 return o; | 190 return o; |
| 191 } | 191 } |
| 192 | 192 |
| 193 checkUnnamed3644(core.List<api.Mutation> o) { | 193 checkUnnamed781(core.List<api.Mutation> o) { |
| 194 unittest.expect(o, unittest.hasLength(2)); | 194 unittest.expect(o, unittest.hasLength(2)); |
| 195 checkMutation(o[0]); | 195 checkMutation(o[0]); |
| 196 checkMutation(o[1]); | 196 checkMutation(o[1]); |
| 197 } | 197 } |
| 198 | 198 |
| 199 core.int buildCounterCommitRequest = 0; | 199 core.int buildCounterCommitRequest = 0; |
| 200 buildCommitRequest() { | 200 buildCommitRequest() { |
| 201 var o = new api.CommitRequest(); | 201 var o = new api.CommitRequest(); |
| 202 buildCounterCommitRequest++; | 202 buildCounterCommitRequest++; |
| 203 if (buildCounterCommitRequest < 3) { | 203 if (buildCounterCommitRequest < 3) { |
| 204 o.mode = "foo"; | 204 o.mode = "foo"; |
| 205 o.mutations = buildUnnamed3644(); | 205 o.mutations = buildUnnamed781(); |
| 206 o.transaction = "foo"; | 206 o.transaction = "foo"; |
| 207 } | 207 } |
| 208 buildCounterCommitRequest--; | 208 buildCounterCommitRequest--; |
| 209 return o; | 209 return o; |
| 210 } | 210 } |
| 211 | 211 |
| 212 checkCommitRequest(api.CommitRequest o) { | 212 checkCommitRequest(api.CommitRequest o) { |
| 213 buildCounterCommitRequest++; | 213 buildCounterCommitRequest++; |
| 214 if (buildCounterCommitRequest < 3) { | 214 if (buildCounterCommitRequest < 3) { |
| 215 unittest.expect(o.mode, unittest.equals('foo')); | 215 unittest.expect(o.mode, unittest.equals('foo')); |
| 216 checkUnnamed3644(o.mutations); | 216 checkUnnamed781(o.mutations); |
| 217 unittest.expect(o.transaction, unittest.equals('foo')); | 217 unittest.expect(o.transaction, unittest.equals('foo')); |
| 218 } | 218 } |
| 219 buildCounterCommitRequest--; | 219 buildCounterCommitRequest--; |
| 220 } | 220 } |
| 221 | 221 |
| 222 buildUnnamed3645() { | 222 buildUnnamed782() { |
| 223 var o = new core.List<api.MutationResult>(); | 223 var o = new core.List<api.MutationResult>(); |
| 224 o.add(buildMutationResult()); | 224 o.add(buildMutationResult()); |
| 225 o.add(buildMutationResult()); | 225 o.add(buildMutationResult()); |
| 226 return o; | 226 return o; |
| 227 } | 227 } |
| 228 | 228 |
| 229 checkUnnamed3645(core.List<api.MutationResult> o) { | 229 checkUnnamed782(core.List<api.MutationResult> o) { |
| 230 unittest.expect(o, unittest.hasLength(2)); | 230 unittest.expect(o, unittest.hasLength(2)); |
| 231 checkMutationResult(o[0]); | 231 checkMutationResult(o[0]); |
| 232 checkMutationResult(o[1]); | 232 checkMutationResult(o[1]); |
| 233 } | 233 } |
| 234 | 234 |
| 235 core.int buildCounterCommitResponse = 0; | 235 core.int buildCounterCommitResponse = 0; |
| 236 buildCommitResponse() { | 236 buildCommitResponse() { |
| 237 var o = new api.CommitResponse(); | 237 var o = new api.CommitResponse(); |
| 238 buildCounterCommitResponse++; | 238 buildCounterCommitResponse++; |
| 239 if (buildCounterCommitResponse < 3) { | 239 if (buildCounterCommitResponse < 3) { |
| 240 o.indexUpdates = 42; | 240 o.indexUpdates = 42; |
| 241 o.mutationResults = buildUnnamed3645(); | 241 o.mutationResults = buildUnnamed782(); |
| 242 } | 242 } |
| 243 buildCounterCommitResponse--; | 243 buildCounterCommitResponse--; |
| 244 return o; | 244 return o; |
| 245 } | 245 } |
| 246 | 246 |
| 247 checkCommitResponse(api.CommitResponse o) { | 247 checkCommitResponse(api.CommitResponse o) { |
| 248 buildCounterCommitResponse++; | 248 buildCounterCommitResponse++; |
| 249 if (buildCounterCommitResponse < 3) { | 249 if (buildCounterCommitResponse < 3) { |
| 250 unittest.expect(o.indexUpdates, unittest.equals(42)); | 250 unittest.expect(o.indexUpdates, unittest.equals(42)); |
| 251 checkUnnamed3645(o.mutationResults); | 251 checkUnnamed782(o.mutationResults); |
| 252 } | 252 } |
| 253 buildCounterCommitResponse--; | 253 buildCounterCommitResponse--; |
| 254 } | 254 } |
| 255 | 255 |
| 256 buildUnnamed3646() { | 256 buildUnnamed783() { |
| 257 var o = new core.List<api.Filter>(); | 257 var o = new core.List<api.Filter>(); |
| 258 o.add(buildFilter()); | 258 o.add(buildFilter()); |
| 259 o.add(buildFilter()); | 259 o.add(buildFilter()); |
| 260 return o; | 260 return o; |
| 261 } | 261 } |
| 262 | 262 |
| 263 checkUnnamed3646(core.List<api.Filter> o) { | 263 checkUnnamed783(core.List<api.Filter> o) { |
| 264 unittest.expect(o, unittest.hasLength(2)); | 264 unittest.expect(o, unittest.hasLength(2)); |
| 265 checkFilter(o[0]); | 265 checkFilter(o[0]); |
| 266 checkFilter(o[1]); | 266 checkFilter(o[1]); |
| 267 } | 267 } |
| 268 | 268 |
| 269 core.int buildCounterCompositeFilter = 0; | 269 core.int buildCounterCompositeFilter = 0; |
| 270 buildCompositeFilter() { | 270 buildCompositeFilter() { |
| 271 var o = new api.CompositeFilter(); | 271 var o = new api.CompositeFilter(); |
| 272 buildCounterCompositeFilter++; | 272 buildCounterCompositeFilter++; |
| 273 if (buildCounterCompositeFilter < 3) { | 273 if (buildCounterCompositeFilter < 3) { |
| 274 o.filters = buildUnnamed3646(); | 274 o.filters = buildUnnamed783(); |
| 275 o.op = "foo"; | 275 o.op = "foo"; |
| 276 } | 276 } |
| 277 buildCounterCompositeFilter--; | 277 buildCounterCompositeFilter--; |
| 278 return o; | 278 return o; |
| 279 } | 279 } |
| 280 | 280 |
| 281 checkCompositeFilter(api.CompositeFilter o) { | 281 checkCompositeFilter(api.CompositeFilter o) { |
| 282 buildCounterCompositeFilter++; | 282 buildCounterCompositeFilter++; |
| 283 if (buildCounterCompositeFilter < 3) { | 283 if (buildCounterCompositeFilter < 3) { |
| 284 checkUnnamed3646(o.filters); | 284 checkUnnamed783(o.filters); |
| 285 unittest.expect(o.op, unittest.equals('foo')); | 285 unittest.expect(o.op, unittest.equals('foo')); |
| 286 } | 286 } |
| 287 buildCounterCompositeFilter--; | 287 buildCounterCompositeFilter--; |
| 288 } | 288 } |
| 289 | 289 |
| 290 buildUnnamed3647() { | 290 buildUnnamed784() { |
| 291 var o = new core.Map<core.String, api.Value>(); | 291 var o = new core.Map<core.String, api.Value>(); |
| 292 o["x"] = buildValue(); | 292 o["x"] = buildValue(); |
| 293 o["y"] = buildValue(); | 293 o["y"] = buildValue(); |
| 294 return o; | 294 return o; |
| 295 } | 295 } |
| 296 | 296 |
| 297 checkUnnamed3647(core.Map<core.String, api.Value> o) { | 297 checkUnnamed784(core.Map<core.String, api.Value> o) { |
| 298 unittest.expect(o, unittest.hasLength(2)); | 298 unittest.expect(o, unittest.hasLength(2)); |
| 299 checkValue(o["x"]); | 299 checkValue(o["x"]); |
| 300 checkValue(o["y"]); | 300 checkValue(o["y"]); |
| 301 } | 301 } |
| 302 | 302 |
| 303 core.int buildCounterEntity = 0; | 303 core.int buildCounterEntity = 0; |
| 304 buildEntity() { | 304 buildEntity() { |
| 305 var o = new api.Entity(); | 305 var o = new api.Entity(); |
| 306 buildCounterEntity++; | 306 buildCounterEntity++; |
| 307 if (buildCounterEntity < 3) { | 307 if (buildCounterEntity < 3) { |
| 308 o.key = buildKey(); | 308 o.key = buildKey(); |
| 309 o.properties = buildUnnamed3647(); | 309 o.properties = buildUnnamed784(); |
| 310 } | 310 } |
| 311 buildCounterEntity--; | 311 buildCounterEntity--; |
| 312 return o; | 312 return o; |
| 313 } | 313 } |
| 314 | 314 |
| 315 checkEntity(api.Entity o) { | 315 checkEntity(api.Entity o) { |
| 316 buildCounterEntity++; | 316 buildCounterEntity++; |
| 317 if (buildCounterEntity < 3) { | 317 if (buildCounterEntity < 3) { |
| 318 checkKey(o.key); | 318 checkKey(o.key); |
| 319 checkUnnamed3647(o.properties); | 319 checkUnnamed784(o.properties); |
| 320 } | 320 } |
| 321 buildCounterEntity--; | 321 buildCounterEntity--; |
| 322 } | 322 } |
| 323 | 323 |
| 324 core.int buildCounterEntityResult = 0; | 324 core.int buildCounterEntityResult = 0; |
| 325 buildEntityResult() { | 325 buildEntityResult() { |
| 326 var o = new api.EntityResult(); | 326 var o = new api.EntityResult(); |
| 327 buildCounterEntityResult++; | 327 buildCounterEntityResult++; |
| 328 if (buildCounterEntityResult < 3) { | 328 if (buildCounterEntityResult < 3) { |
| 329 o.cursor = "foo"; | 329 o.cursor = "foo"; |
| 330 o.entity = buildEntity(); | 330 o.entity = buildEntity(); |
| 331 o.version = "foo"; |
| 331 } | 332 } |
| 332 buildCounterEntityResult--; | 333 buildCounterEntityResult--; |
| 333 return o; | 334 return o; |
| 334 } | 335 } |
| 335 | 336 |
| 336 checkEntityResult(api.EntityResult o) { | 337 checkEntityResult(api.EntityResult o) { |
| 337 buildCounterEntityResult++; | 338 buildCounterEntityResult++; |
| 338 if (buildCounterEntityResult < 3) { | 339 if (buildCounterEntityResult < 3) { |
| 339 unittest.expect(o.cursor, unittest.equals('foo')); | 340 unittest.expect(o.cursor, unittest.equals('foo')); |
| 340 checkEntity(o.entity); | 341 checkEntity(o.entity); |
| 342 unittest.expect(o.version, unittest.equals('foo')); |
| 341 } | 343 } |
| 342 buildCounterEntityResult--; | 344 buildCounterEntityResult--; |
| 343 } | 345 } |
| 344 | 346 |
| 345 core.int buildCounterFilter = 0; | 347 core.int buildCounterFilter = 0; |
| 346 buildFilter() { | 348 buildFilter() { |
| 347 var o = new api.Filter(); | 349 var o = new api.Filter(); |
| 348 buildCounterFilter++; | 350 buildCounterFilter++; |
| 349 if (buildCounterFilter < 3) { | 351 if (buildCounterFilter < 3) { |
| 350 o.compositeFilter = buildCompositeFilter(); | 352 o.compositeFilter = buildCompositeFilter(); |
| 351 o.propertyFilter = buildPropertyFilter(); | 353 o.propertyFilter = buildPropertyFilter(); |
| 352 } | 354 } |
| 353 buildCounterFilter--; | 355 buildCounterFilter--; |
| 354 return o; | 356 return o; |
| 355 } | 357 } |
| 356 | 358 |
| 357 checkFilter(api.Filter o) { | 359 checkFilter(api.Filter o) { |
| 358 buildCounterFilter++; | 360 buildCounterFilter++; |
| 359 if (buildCounterFilter < 3) { | 361 if (buildCounterFilter < 3) { |
| 360 checkCompositeFilter(o.compositeFilter); | 362 checkCompositeFilter(o.compositeFilter); |
| 361 checkPropertyFilter(o.propertyFilter); | 363 checkPropertyFilter(o.propertyFilter); |
| 362 } | 364 } |
| 363 buildCounterFilter--; | 365 buildCounterFilter--; |
| 364 } | 366 } |
| 365 | 367 |
| 366 buildUnnamed3648() { | 368 buildUnnamed785() { |
| 367 var o = new core.Map<core.String, api.GqlQueryParameter>(); | 369 var o = new core.Map<core.String, api.GqlQueryParameter>(); |
| 368 o["x"] = buildGqlQueryParameter(); | 370 o["x"] = buildGqlQueryParameter(); |
| 369 o["y"] = buildGqlQueryParameter(); | 371 o["y"] = buildGqlQueryParameter(); |
| 370 return o; | 372 return o; |
| 371 } | 373 } |
| 372 | 374 |
| 373 checkUnnamed3648(core.Map<core.String, api.GqlQueryParameter> o) { | 375 checkUnnamed785(core.Map<core.String, api.GqlQueryParameter> o) { |
| 374 unittest.expect(o, unittest.hasLength(2)); | 376 unittest.expect(o, unittest.hasLength(2)); |
| 375 checkGqlQueryParameter(o["x"]); | 377 checkGqlQueryParameter(o["x"]); |
| 376 checkGqlQueryParameter(o["y"]); | 378 checkGqlQueryParameter(o["y"]); |
| 377 } | 379 } |
| 378 | 380 |
| 379 buildUnnamed3649() { | 381 buildUnnamed786() { |
| 380 var o = new core.List<api.GqlQueryParameter>(); | 382 var o = new core.List<api.GqlQueryParameter>(); |
| 381 o.add(buildGqlQueryParameter()); | 383 o.add(buildGqlQueryParameter()); |
| 382 o.add(buildGqlQueryParameter()); | 384 o.add(buildGqlQueryParameter()); |
| 383 return o; | 385 return o; |
| 384 } | 386 } |
| 385 | 387 |
| 386 checkUnnamed3649(core.List<api.GqlQueryParameter> o) { | 388 checkUnnamed786(core.List<api.GqlQueryParameter> o) { |
| 387 unittest.expect(o, unittest.hasLength(2)); | 389 unittest.expect(o, unittest.hasLength(2)); |
| 388 checkGqlQueryParameter(o[0]); | 390 checkGqlQueryParameter(o[0]); |
| 389 checkGqlQueryParameter(o[1]); | 391 checkGqlQueryParameter(o[1]); |
| 390 } | 392 } |
| 391 | 393 |
| 392 core.int buildCounterGqlQuery = 0; | 394 core.int buildCounterGqlQuery = 0; |
| 393 buildGqlQuery() { | 395 buildGqlQuery() { |
| 394 var o = new api.GqlQuery(); | 396 var o = new api.GqlQuery(); |
| 395 buildCounterGqlQuery++; | 397 buildCounterGqlQuery++; |
| 396 if (buildCounterGqlQuery < 3) { | 398 if (buildCounterGqlQuery < 3) { |
| 397 o.allowLiterals = true; | 399 o.allowLiterals = true; |
| 398 o.namedBindings = buildUnnamed3648(); | 400 o.namedBindings = buildUnnamed785(); |
| 399 o.positionalBindings = buildUnnamed3649(); | 401 o.positionalBindings = buildUnnamed786(); |
| 400 o.queryString = "foo"; | 402 o.queryString = "foo"; |
| 401 } | 403 } |
| 402 buildCounterGqlQuery--; | 404 buildCounterGqlQuery--; |
| 403 return o; | 405 return o; |
| 404 } | 406 } |
| 405 | 407 |
| 406 checkGqlQuery(api.GqlQuery o) { | 408 checkGqlQuery(api.GqlQuery o) { |
| 407 buildCounterGqlQuery++; | 409 buildCounterGqlQuery++; |
| 408 if (buildCounterGqlQuery < 3) { | 410 if (buildCounterGqlQuery < 3) { |
| 409 unittest.expect(o.allowLiterals, unittest.isTrue); | 411 unittest.expect(o.allowLiterals, unittest.isTrue); |
| 410 checkUnnamed3648(o.namedBindings); | 412 checkUnnamed785(o.namedBindings); |
| 411 checkUnnamed3649(o.positionalBindings); | 413 checkUnnamed786(o.positionalBindings); |
| 412 unittest.expect(o.queryString, unittest.equals('foo')); | 414 unittest.expect(o.queryString, unittest.equals('foo')); |
| 413 } | 415 } |
| 414 buildCounterGqlQuery--; | 416 buildCounterGqlQuery--; |
| 415 } | 417 } |
| 416 | 418 |
| 417 core.int buildCounterGqlQueryParameter = 0; | 419 core.int buildCounterGqlQueryParameter = 0; |
| 418 buildGqlQueryParameter() { | 420 buildGqlQueryParameter() { |
| 419 var o = new api.GqlQueryParameter(); | 421 var o = new api.GqlQueryParameter(); |
| 420 buildCounterGqlQueryParameter++; | 422 buildCounterGqlQueryParameter++; |
| 421 if (buildCounterGqlQueryParameter < 3) { | 423 if (buildCounterGqlQueryParameter < 3) { |
| 422 o.cursor = "foo"; | 424 o.cursor = "foo"; |
| 423 o.value = buildValue(); | 425 o.value = buildValue(); |
| 424 } | 426 } |
| 425 buildCounterGqlQueryParameter--; | 427 buildCounterGqlQueryParameter--; |
| 426 return o; | 428 return o; |
| 427 } | 429 } |
| 428 | 430 |
| 429 checkGqlQueryParameter(api.GqlQueryParameter o) { | 431 checkGqlQueryParameter(api.GqlQueryParameter o) { |
| 430 buildCounterGqlQueryParameter++; | 432 buildCounterGqlQueryParameter++; |
| 431 if (buildCounterGqlQueryParameter < 3) { | 433 if (buildCounterGqlQueryParameter < 3) { |
| 432 unittest.expect(o.cursor, unittest.equals('foo')); | 434 unittest.expect(o.cursor, unittest.equals('foo')); |
| 433 checkValue(o.value); | 435 checkValue(o.value); |
| 434 } | 436 } |
| 435 buildCounterGqlQueryParameter--; | 437 buildCounterGqlQueryParameter--; |
| 436 } | 438 } |
| 437 | 439 |
| 438 buildUnnamed3650() { | 440 buildUnnamed787() { |
| 439 var o = new core.List<api.PathElement>(); | 441 var o = new core.List<api.PathElement>(); |
| 440 o.add(buildPathElement()); | 442 o.add(buildPathElement()); |
| 441 o.add(buildPathElement()); | 443 o.add(buildPathElement()); |
| 442 return o; | 444 return o; |
| 443 } | 445 } |
| 444 | 446 |
| 445 checkUnnamed3650(core.List<api.PathElement> o) { | 447 checkUnnamed787(core.List<api.PathElement> o) { |
| 446 unittest.expect(o, unittest.hasLength(2)); | 448 unittest.expect(o, unittest.hasLength(2)); |
| 447 checkPathElement(o[0]); | 449 checkPathElement(o[0]); |
| 448 checkPathElement(o[1]); | 450 checkPathElement(o[1]); |
| 449 } | 451 } |
| 450 | 452 |
| 451 core.int buildCounterKey = 0; | 453 core.int buildCounterKey = 0; |
| 452 buildKey() { | 454 buildKey() { |
| 453 var o = new api.Key(); | 455 var o = new api.Key(); |
| 454 buildCounterKey++; | 456 buildCounterKey++; |
| 455 if (buildCounterKey < 3) { | 457 if (buildCounterKey < 3) { |
| 456 o.partitionId = buildPartitionId(); | 458 o.partitionId = buildPartitionId(); |
| 457 o.path = buildUnnamed3650(); | 459 o.path = buildUnnamed787(); |
| 458 } | 460 } |
| 459 buildCounterKey--; | 461 buildCounterKey--; |
| 460 return o; | 462 return o; |
| 461 } | 463 } |
| 462 | 464 |
| 463 checkKey(api.Key o) { | 465 checkKey(api.Key o) { |
| 464 buildCounterKey++; | 466 buildCounterKey++; |
| 465 if (buildCounterKey < 3) { | 467 if (buildCounterKey < 3) { |
| 466 checkPartitionId(o.partitionId); | 468 checkPartitionId(o.partitionId); |
| 467 checkUnnamed3650(o.path); | 469 checkUnnamed787(o.path); |
| 468 } | 470 } |
| 469 buildCounterKey--; | 471 buildCounterKey--; |
| 470 } | 472 } |
| 471 | 473 |
| 472 core.int buildCounterKindExpression = 0; | 474 core.int buildCounterKindExpression = 0; |
| 473 buildKindExpression() { | 475 buildKindExpression() { |
| 474 var o = new api.KindExpression(); | 476 var o = new api.KindExpression(); |
| 475 buildCounterKindExpression++; | 477 buildCounterKindExpression++; |
| 476 if (buildCounterKindExpression < 3) { | 478 if (buildCounterKindExpression < 3) { |
| 477 o.name = "foo"; | 479 o.name = "foo"; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 502 | 504 |
| 503 checkLatLng(api.LatLng o) { | 505 checkLatLng(api.LatLng o) { |
| 504 buildCounterLatLng++; | 506 buildCounterLatLng++; |
| 505 if (buildCounterLatLng < 3) { | 507 if (buildCounterLatLng < 3) { |
| 506 unittest.expect(o.latitude, unittest.equals(42.0)); | 508 unittest.expect(o.latitude, unittest.equals(42.0)); |
| 507 unittest.expect(o.longitude, unittest.equals(42.0)); | 509 unittest.expect(o.longitude, unittest.equals(42.0)); |
| 508 } | 510 } |
| 509 buildCounterLatLng--; | 511 buildCounterLatLng--; |
| 510 } | 512 } |
| 511 | 513 |
| 512 buildUnnamed3651() { | 514 buildUnnamed788() { |
| 513 var o = new core.List<api.Key>(); | 515 var o = new core.List<api.Key>(); |
| 514 o.add(buildKey()); | 516 o.add(buildKey()); |
| 515 o.add(buildKey()); | 517 o.add(buildKey()); |
| 516 return o; | 518 return o; |
| 517 } | 519 } |
| 518 | 520 |
| 519 checkUnnamed3651(core.List<api.Key> o) { | 521 checkUnnamed788(core.List<api.Key> o) { |
| 520 unittest.expect(o, unittest.hasLength(2)); | 522 unittest.expect(o, unittest.hasLength(2)); |
| 521 checkKey(o[0]); | 523 checkKey(o[0]); |
| 522 checkKey(o[1]); | 524 checkKey(o[1]); |
| 523 } | 525 } |
| 524 | 526 |
| 525 core.int buildCounterLookupRequest = 0; | 527 core.int buildCounterLookupRequest = 0; |
| 526 buildLookupRequest() { | 528 buildLookupRequest() { |
| 527 var o = new api.LookupRequest(); | 529 var o = new api.LookupRequest(); |
| 528 buildCounterLookupRequest++; | 530 buildCounterLookupRequest++; |
| 529 if (buildCounterLookupRequest < 3) { | 531 if (buildCounterLookupRequest < 3) { |
| 530 o.keys = buildUnnamed3651(); | 532 o.keys = buildUnnamed788(); |
| 531 o.readOptions = buildReadOptions(); | 533 o.readOptions = buildReadOptions(); |
| 532 } | 534 } |
| 533 buildCounterLookupRequest--; | 535 buildCounterLookupRequest--; |
| 534 return o; | 536 return o; |
| 535 } | 537 } |
| 536 | 538 |
| 537 checkLookupRequest(api.LookupRequest o) { | 539 checkLookupRequest(api.LookupRequest o) { |
| 538 buildCounterLookupRequest++; | 540 buildCounterLookupRequest++; |
| 539 if (buildCounterLookupRequest < 3) { | 541 if (buildCounterLookupRequest < 3) { |
| 540 checkUnnamed3651(o.keys); | 542 checkUnnamed788(o.keys); |
| 541 checkReadOptions(o.readOptions); | 543 checkReadOptions(o.readOptions); |
| 542 } | 544 } |
| 543 buildCounterLookupRequest--; | 545 buildCounterLookupRequest--; |
| 544 } | 546 } |
| 545 | 547 |
| 546 buildUnnamed3652() { | 548 buildUnnamed789() { |
| 547 var o = new core.List<api.Key>(); | 549 var o = new core.List<api.Key>(); |
| 548 o.add(buildKey()); | 550 o.add(buildKey()); |
| 549 o.add(buildKey()); | 551 o.add(buildKey()); |
| 550 return o; | 552 return o; |
| 551 } | 553 } |
| 552 | 554 |
| 553 checkUnnamed3652(core.List<api.Key> o) { | 555 checkUnnamed789(core.List<api.Key> o) { |
| 554 unittest.expect(o, unittest.hasLength(2)); | 556 unittest.expect(o, unittest.hasLength(2)); |
| 555 checkKey(o[0]); | 557 checkKey(o[0]); |
| 556 checkKey(o[1]); | 558 checkKey(o[1]); |
| 557 } | 559 } |
| 558 | 560 |
| 559 buildUnnamed3653() { | 561 buildUnnamed790() { |
| 560 var o = new core.List<api.EntityResult>(); | 562 var o = new core.List<api.EntityResult>(); |
| 561 o.add(buildEntityResult()); | 563 o.add(buildEntityResult()); |
| 562 o.add(buildEntityResult()); | 564 o.add(buildEntityResult()); |
| 563 return o; | 565 return o; |
| 564 } | 566 } |
| 565 | 567 |
| 566 checkUnnamed3653(core.List<api.EntityResult> o) { | 568 checkUnnamed790(core.List<api.EntityResult> o) { |
| 567 unittest.expect(o, unittest.hasLength(2)); | 569 unittest.expect(o, unittest.hasLength(2)); |
| 568 checkEntityResult(o[0]); | 570 checkEntityResult(o[0]); |
| 569 checkEntityResult(o[1]); | 571 checkEntityResult(o[1]); |
| 570 } | 572 } |
| 571 | 573 |
| 572 buildUnnamed3654() { | 574 buildUnnamed791() { |
| 573 var o = new core.List<api.EntityResult>(); | 575 var o = new core.List<api.EntityResult>(); |
| 574 o.add(buildEntityResult()); | 576 o.add(buildEntityResult()); |
| 575 o.add(buildEntityResult()); | 577 o.add(buildEntityResult()); |
| 576 return o; | 578 return o; |
| 577 } | 579 } |
| 578 | 580 |
| 579 checkUnnamed3654(core.List<api.EntityResult> o) { | 581 checkUnnamed791(core.List<api.EntityResult> o) { |
| 580 unittest.expect(o, unittest.hasLength(2)); | 582 unittest.expect(o, unittest.hasLength(2)); |
| 581 checkEntityResult(o[0]); | 583 checkEntityResult(o[0]); |
| 582 checkEntityResult(o[1]); | 584 checkEntityResult(o[1]); |
| 583 } | 585 } |
| 584 | 586 |
| 585 core.int buildCounterLookupResponse = 0; | 587 core.int buildCounterLookupResponse = 0; |
| 586 buildLookupResponse() { | 588 buildLookupResponse() { |
| 587 var o = new api.LookupResponse(); | 589 var o = new api.LookupResponse(); |
| 588 buildCounterLookupResponse++; | 590 buildCounterLookupResponse++; |
| 589 if (buildCounterLookupResponse < 3) { | 591 if (buildCounterLookupResponse < 3) { |
| 590 o.deferred = buildUnnamed3652(); | 592 o.deferred = buildUnnamed789(); |
| 591 o.found = buildUnnamed3653(); | 593 o.found = buildUnnamed790(); |
| 592 o.missing = buildUnnamed3654(); | 594 o.missing = buildUnnamed791(); |
| 593 } | 595 } |
| 594 buildCounterLookupResponse--; | 596 buildCounterLookupResponse--; |
| 595 return o; | 597 return o; |
| 596 } | 598 } |
| 597 | 599 |
| 598 checkLookupResponse(api.LookupResponse o) { | 600 checkLookupResponse(api.LookupResponse o) { |
| 599 buildCounterLookupResponse++; | 601 buildCounterLookupResponse++; |
| 600 if (buildCounterLookupResponse < 3) { | 602 if (buildCounterLookupResponse < 3) { |
| 601 checkUnnamed3652(o.deferred); | 603 checkUnnamed789(o.deferred); |
| 602 checkUnnamed3653(o.found); | 604 checkUnnamed790(o.found); |
| 603 checkUnnamed3654(o.missing); | 605 checkUnnamed791(o.missing); |
| 604 } | 606 } |
| 605 buildCounterLookupResponse--; | 607 buildCounterLookupResponse--; |
| 606 } | 608 } |
| 607 | 609 |
| 608 core.int buildCounterMutation = 0; | 610 core.int buildCounterMutation = 0; |
| 609 buildMutation() { | 611 buildMutation() { |
| 610 var o = new api.Mutation(); | 612 var o = new api.Mutation(); |
| 611 buildCounterMutation++; | 613 buildCounterMutation++; |
| 612 if (buildCounterMutation < 3) { | 614 if (buildCounterMutation < 3) { |
| 615 o.baseVersion = "foo"; |
| 613 o.delete = buildKey(); | 616 o.delete = buildKey(); |
| 614 o.insert = buildEntity(); | 617 o.insert = buildEntity(); |
| 615 o.update = buildEntity(); | 618 o.update = buildEntity(); |
| 616 o.upsert = buildEntity(); | 619 o.upsert = buildEntity(); |
| 617 } | 620 } |
| 618 buildCounterMutation--; | 621 buildCounterMutation--; |
| 619 return o; | 622 return o; |
| 620 } | 623 } |
| 621 | 624 |
| 622 checkMutation(api.Mutation o) { | 625 checkMutation(api.Mutation o) { |
| 623 buildCounterMutation++; | 626 buildCounterMutation++; |
| 624 if (buildCounterMutation < 3) { | 627 if (buildCounterMutation < 3) { |
| 628 unittest.expect(o.baseVersion, unittest.equals('foo')); |
| 625 checkKey(o.delete); | 629 checkKey(o.delete); |
| 626 checkEntity(o.insert); | 630 checkEntity(o.insert); |
| 627 checkEntity(o.update); | 631 checkEntity(o.update); |
| 628 checkEntity(o.upsert); | 632 checkEntity(o.upsert); |
| 629 } | 633 } |
| 630 buildCounterMutation--; | 634 buildCounterMutation--; |
| 631 } | 635 } |
| 632 | 636 |
| 633 core.int buildCounterMutationResult = 0; | 637 core.int buildCounterMutationResult = 0; |
| 634 buildMutationResult() { | 638 buildMutationResult() { |
| 635 var o = new api.MutationResult(); | 639 var o = new api.MutationResult(); |
| 636 buildCounterMutationResult++; | 640 buildCounterMutationResult++; |
| 637 if (buildCounterMutationResult < 3) { | 641 if (buildCounterMutationResult < 3) { |
| 642 o.conflictDetected = true; |
| 638 o.key = buildKey(); | 643 o.key = buildKey(); |
| 644 o.version = "foo"; |
| 639 } | 645 } |
| 640 buildCounterMutationResult--; | 646 buildCounterMutationResult--; |
| 641 return o; | 647 return o; |
| 642 } | 648 } |
| 643 | 649 |
| 644 checkMutationResult(api.MutationResult o) { | 650 checkMutationResult(api.MutationResult o) { |
| 645 buildCounterMutationResult++; | 651 buildCounterMutationResult++; |
| 646 if (buildCounterMutationResult < 3) { | 652 if (buildCounterMutationResult < 3) { |
| 653 unittest.expect(o.conflictDetected, unittest.isTrue); |
| 647 checkKey(o.key); | 654 checkKey(o.key); |
| 655 unittest.expect(o.version, unittest.equals('foo')); |
| 648 } | 656 } |
| 649 buildCounterMutationResult--; | 657 buildCounterMutationResult--; |
| 650 } | 658 } |
| 651 | 659 |
| 652 core.int buildCounterPartitionId = 0; | 660 core.int buildCounterPartitionId = 0; |
| 653 buildPartitionId() { | 661 buildPartitionId() { |
| 654 var o = new api.PartitionId(); | 662 var o = new api.PartitionId(); |
| 655 buildCounterPartitionId++; | 663 buildCounterPartitionId++; |
| 656 if (buildCounterPartitionId < 3) { | 664 if (buildCounterPartitionId < 3) { |
| 657 o.namespaceId = "foo"; | 665 o.namespaceId = "foo"; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 } | 776 } |
| 769 | 777 |
| 770 checkPropertyReference(api.PropertyReference o) { | 778 checkPropertyReference(api.PropertyReference o) { |
| 771 buildCounterPropertyReference++; | 779 buildCounterPropertyReference++; |
| 772 if (buildCounterPropertyReference < 3) { | 780 if (buildCounterPropertyReference < 3) { |
| 773 unittest.expect(o.name, unittest.equals('foo')); | 781 unittest.expect(o.name, unittest.equals('foo')); |
| 774 } | 782 } |
| 775 buildCounterPropertyReference--; | 783 buildCounterPropertyReference--; |
| 776 } | 784 } |
| 777 | 785 |
| 778 buildUnnamed3655() { | 786 buildUnnamed792() { |
| 779 var o = new core.List<api.PropertyReference>(); | 787 var o = new core.List<api.PropertyReference>(); |
| 780 o.add(buildPropertyReference()); | 788 o.add(buildPropertyReference()); |
| 781 o.add(buildPropertyReference()); | 789 o.add(buildPropertyReference()); |
| 782 return o; | 790 return o; |
| 783 } | 791 } |
| 784 | 792 |
| 785 checkUnnamed3655(core.List<api.PropertyReference> o) { | 793 checkUnnamed792(core.List<api.PropertyReference> o) { |
| 786 unittest.expect(o, unittest.hasLength(2)); | 794 unittest.expect(o, unittest.hasLength(2)); |
| 787 checkPropertyReference(o[0]); | 795 checkPropertyReference(o[0]); |
| 788 checkPropertyReference(o[1]); | 796 checkPropertyReference(o[1]); |
| 789 } | 797 } |
| 790 | 798 |
| 791 buildUnnamed3656() { | 799 buildUnnamed793() { |
| 792 var o = new core.List<api.KindExpression>(); | 800 var o = new core.List<api.KindExpression>(); |
| 793 o.add(buildKindExpression()); | 801 o.add(buildKindExpression()); |
| 794 o.add(buildKindExpression()); | 802 o.add(buildKindExpression()); |
| 795 return o; | 803 return o; |
| 796 } | 804 } |
| 797 | 805 |
| 798 checkUnnamed3656(core.List<api.KindExpression> o) { | 806 checkUnnamed793(core.List<api.KindExpression> o) { |
| 799 unittest.expect(o, unittest.hasLength(2)); | 807 unittest.expect(o, unittest.hasLength(2)); |
| 800 checkKindExpression(o[0]); | 808 checkKindExpression(o[0]); |
| 801 checkKindExpression(o[1]); | 809 checkKindExpression(o[1]); |
| 802 } | 810 } |
| 803 | 811 |
| 804 buildUnnamed3657() { | 812 buildUnnamed794() { |
| 805 var o = new core.List<api.PropertyOrder>(); | 813 var o = new core.List<api.PropertyOrder>(); |
| 806 o.add(buildPropertyOrder()); | 814 o.add(buildPropertyOrder()); |
| 807 o.add(buildPropertyOrder()); | 815 o.add(buildPropertyOrder()); |
| 808 return o; | 816 return o; |
| 809 } | 817 } |
| 810 | 818 |
| 811 checkUnnamed3657(core.List<api.PropertyOrder> o) { | 819 checkUnnamed794(core.List<api.PropertyOrder> o) { |
| 812 unittest.expect(o, unittest.hasLength(2)); | 820 unittest.expect(o, unittest.hasLength(2)); |
| 813 checkPropertyOrder(o[0]); | 821 checkPropertyOrder(o[0]); |
| 814 checkPropertyOrder(o[1]); | 822 checkPropertyOrder(o[1]); |
| 815 } | 823 } |
| 816 | 824 |
| 817 buildUnnamed3658() { | 825 buildUnnamed795() { |
| 818 var o = new core.List<api.Projection>(); | 826 var o = new core.List<api.Projection>(); |
| 819 o.add(buildProjection()); | 827 o.add(buildProjection()); |
| 820 o.add(buildProjection()); | 828 o.add(buildProjection()); |
| 821 return o; | 829 return o; |
| 822 } | 830 } |
| 823 | 831 |
| 824 checkUnnamed3658(core.List<api.Projection> o) { | 832 checkUnnamed795(core.List<api.Projection> o) { |
| 825 unittest.expect(o, unittest.hasLength(2)); | 833 unittest.expect(o, unittest.hasLength(2)); |
| 826 checkProjection(o[0]); | 834 checkProjection(o[0]); |
| 827 checkProjection(o[1]); | 835 checkProjection(o[1]); |
| 828 } | 836 } |
| 829 | 837 |
| 830 core.int buildCounterQuery = 0; | 838 core.int buildCounterQuery = 0; |
| 831 buildQuery() { | 839 buildQuery() { |
| 832 var o = new api.Query(); | 840 var o = new api.Query(); |
| 833 buildCounterQuery++; | 841 buildCounterQuery++; |
| 834 if (buildCounterQuery < 3) { | 842 if (buildCounterQuery < 3) { |
| 835 o.distinctOn = buildUnnamed3655(); | 843 o.distinctOn = buildUnnamed792(); |
| 836 o.endCursor = "foo"; | 844 o.endCursor = "foo"; |
| 837 o.filter = buildFilter(); | 845 o.filter = buildFilter(); |
| 838 o.kind = buildUnnamed3656(); | 846 o.kind = buildUnnamed793(); |
| 839 o.limit = 42; | 847 o.limit = 42; |
| 840 o.offset = 42; | 848 o.offset = 42; |
| 841 o.order = buildUnnamed3657(); | 849 o.order = buildUnnamed794(); |
| 842 o.projection = buildUnnamed3658(); | 850 o.projection = buildUnnamed795(); |
| 843 o.startCursor = "foo"; | 851 o.startCursor = "foo"; |
| 844 } | 852 } |
| 845 buildCounterQuery--; | 853 buildCounterQuery--; |
| 846 return o; | 854 return o; |
| 847 } | 855 } |
| 848 | 856 |
| 849 checkQuery(api.Query o) { | 857 checkQuery(api.Query o) { |
| 850 buildCounterQuery++; | 858 buildCounterQuery++; |
| 851 if (buildCounterQuery < 3) { | 859 if (buildCounterQuery < 3) { |
| 852 checkUnnamed3655(o.distinctOn); | 860 checkUnnamed792(o.distinctOn); |
| 853 unittest.expect(o.endCursor, unittest.equals('foo')); | 861 unittest.expect(o.endCursor, unittest.equals('foo')); |
| 854 checkFilter(o.filter); | 862 checkFilter(o.filter); |
| 855 checkUnnamed3656(o.kind); | 863 checkUnnamed793(o.kind); |
| 856 unittest.expect(o.limit, unittest.equals(42)); | 864 unittest.expect(o.limit, unittest.equals(42)); |
| 857 unittest.expect(o.offset, unittest.equals(42)); | 865 unittest.expect(o.offset, unittest.equals(42)); |
| 858 checkUnnamed3657(o.order); | 866 checkUnnamed794(o.order); |
| 859 checkUnnamed3658(o.projection); | 867 checkUnnamed795(o.projection); |
| 860 unittest.expect(o.startCursor, unittest.equals('foo')); | 868 unittest.expect(o.startCursor, unittest.equals('foo')); |
| 861 } | 869 } |
| 862 buildCounterQuery--; | 870 buildCounterQuery--; |
| 863 } | 871 } |
| 864 | 872 |
| 865 buildUnnamed3659() { | 873 buildUnnamed796() { |
| 866 var o = new core.List<api.EntityResult>(); | 874 var o = new core.List<api.EntityResult>(); |
| 867 o.add(buildEntityResult()); | 875 o.add(buildEntityResult()); |
| 868 o.add(buildEntityResult()); | 876 o.add(buildEntityResult()); |
| 869 return o; | 877 return o; |
| 870 } | 878 } |
| 871 | 879 |
| 872 checkUnnamed3659(core.List<api.EntityResult> o) { | 880 checkUnnamed796(core.List<api.EntityResult> o) { |
| 873 unittest.expect(o, unittest.hasLength(2)); | 881 unittest.expect(o, unittest.hasLength(2)); |
| 874 checkEntityResult(o[0]); | 882 checkEntityResult(o[0]); |
| 875 checkEntityResult(o[1]); | 883 checkEntityResult(o[1]); |
| 876 } | 884 } |
| 877 | 885 |
| 878 core.int buildCounterQueryResultBatch = 0; | 886 core.int buildCounterQueryResultBatch = 0; |
| 879 buildQueryResultBatch() { | 887 buildQueryResultBatch() { |
| 880 var o = new api.QueryResultBatch(); | 888 var o = new api.QueryResultBatch(); |
| 881 buildCounterQueryResultBatch++; | 889 buildCounterQueryResultBatch++; |
| 882 if (buildCounterQueryResultBatch < 3) { | 890 if (buildCounterQueryResultBatch < 3) { |
| 883 o.endCursor = "foo"; | 891 o.endCursor = "foo"; |
| 884 o.entityResultType = "foo"; | 892 o.entityResultType = "foo"; |
| 885 o.entityResults = buildUnnamed3659(); | 893 o.entityResults = buildUnnamed796(); |
| 886 o.moreResults = "foo"; | 894 o.moreResults = "foo"; |
| 887 o.skippedCursor = "foo"; | 895 o.skippedCursor = "foo"; |
| 888 o.skippedResults = 42; | 896 o.skippedResults = 42; |
| 897 o.snapshotVersion = "foo"; |
| 889 } | 898 } |
| 890 buildCounterQueryResultBatch--; | 899 buildCounterQueryResultBatch--; |
| 891 return o; | 900 return o; |
| 892 } | 901 } |
| 893 | 902 |
| 894 checkQueryResultBatch(api.QueryResultBatch o) { | 903 checkQueryResultBatch(api.QueryResultBatch o) { |
| 895 buildCounterQueryResultBatch++; | 904 buildCounterQueryResultBatch++; |
| 896 if (buildCounterQueryResultBatch < 3) { | 905 if (buildCounterQueryResultBatch < 3) { |
| 897 unittest.expect(o.endCursor, unittest.equals('foo')); | 906 unittest.expect(o.endCursor, unittest.equals('foo')); |
| 898 unittest.expect(o.entityResultType, unittest.equals('foo')); | 907 unittest.expect(o.entityResultType, unittest.equals('foo')); |
| 899 checkUnnamed3659(o.entityResults); | 908 checkUnnamed796(o.entityResults); |
| 900 unittest.expect(o.moreResults, unittest.equals('foo')); | 909 unittest.expect(o.moreResults, unittest.equals('foo')); |
| 901 unittest.expect(o.skippedCursor, unittest.equals('foo')); | 910 unittest.expect(o.skippedCursor, unittest.equals('foo')); |
| 902 unittest.expect(o.skippedResults, unittest.equals(42)); | 911 unittest.expect(o.skippedResults, unittest.equals(42)); |
| 912 unittest.expect(o.snapshotVersion, unittest.equals('foo')); |
| 903 } | 913 } |
| 904 buildCounterQueryResultBatch--; | 914 buildCounterQueryResultBatch--; |
| 905 } | 915 } |
| 906 | 916 |
| 907 core.int buildCounterReadOptions = 0; | 917 core.int buildCounterReadOptions = 0; |
| 908 buildReadOptions() { | 918 buildReadOptions() { |
| 909 var o = new api.ReadOptions(); | 919 var o = new api.ReadOptions(); |
| 910 buildCounterReadOptions++; | 920 buildCounterReadOptions++; |
| 911 if (buildCounterReadOptions < 3) { | 921 if (buildCounterReadOptions < 3) { |
| 912 o.readConsistency = "foo"; | 922 o.readConsistency = "foo"; |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1378 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1369 var obj = new api.AllocateIdsRequest.fromJson(json); | 1379 var obj = new api.AllocateIdsRequest.fromJson(json); |
| 1370 checkAllocateIdsRequest(obj); | 1380 checkAllocateIdsRequest(obj); |
| 1371 | 1381 |
| 1372 var path = (req.url).path; | 1382 var path = (req.url).path; |
| 1373 var pathOffset = 0; | 1383 var pathOffset = 0; |
| 1374 var index; | 1384 var index; |
| 1375 var subPart; | 1385 var subPart; |
| 1376 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1377 pathOffset += 1; | 1387 pathOffset += 1; |
| 1378 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta3/projects/")); | 1388 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 1379 pathOffset += 17; | 1389 pathOffset += 12; |
| 1380 index = path.indexOf(":allocateIds", pathOffset); | 1390 index = path.indexOf(":allocateIds", pathOffset); |
| 1381 unittest.expect(index >= 0, unittest.isTrue); | 1391 unittest.expect(index >= 0, unittest.isTrue); |
| 1382 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1392 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1383 pathOffset = index; | 1393 pathOffset = index; |
| 1384 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 1394 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 1385 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals(":allocateIds")); | 1395 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals(":allocateIds")); |
| 1386 pathOffset += 12; | 1396 pathOffset += 12; |
| 1387 | 1397 |
| 1388 var query = (req.url).query; | 1398 var query = (req.url).query; |
| 1389 var queryOffset = 0; | 1399 var queryOffset = 0; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1423 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1424 var obj = new api.BeginTransactionRequest.fromJson(json); | 1434 var obj = new api.BeginTransactionRequest.fromJson(json); |
| 1425 checkBeginTransactionRequest(obj); | 1435 checkBeginTransactionRequest(obj); |
| 1426 | 1436 |
| 1427 var path = (req.url).path; | 1437 var path = (req.url).path; |
| 1428 var pathOffset = 0; | 1438 var pathOffset = 0; |
| 1429 var index; | 1439 var index; |
| 1430 var subPart; | 1440 var subPart; |
| 1431 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1432 pathOffset += 1; | 1442 pathOffset += 1; |
| 1433 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta3/projects/")); | 1443 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 1434 pathOffset += 17; | 1444 pathOffset += 12; |
| 1435 index = path.indexOf(":beginTransaction", pathOffset); | 1445 index = path.indexOf(":beginTransaction", pathOffset); |
| 1436 unittest.expect(index >= 0, unittest.isTrue); | 1446 unittest.expect(index >= 0, unittest.isTrue); |
| 1437 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1447 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1438 pathOffset = index; | 1448 pathOffset = index; |
| 1439 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 1449 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 1440 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals(":beginTransaction")); | 1450 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals(":beginTransaction")); |
| 1441 pathOffset += 17; | 1451 pathOffset += 17; |
| 1442 | 1452 |
| 1443 var query = (req.url).query; | 1453 var query = (req.url).query; |
| 1444 var queryOffset = 0; | 1454 var queryOffset = 0; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1488 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1479 var obj = new api.CommitRequest.fromJson(json); | 1489 var obj = new api.CommitRequest.fromJson(json); |
| 1480 checkCommitRequest(obj); | 1490 checkCommitRequest(obj); |
| 1481 | 1491 |
| 1482 var path = (req.url).path; | 1492 var path = (req.url).path; |
| 1483 var pathOffset = 0; | 1493 var pathOffset = 0; |
| 1484 var index; | 1494 var index; |
| 1485 var subPart; | 1495 var subPart; |
| 1486 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1487 pathOffset += 1; | 1497 pathOffset += 1; |
| 1488 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta3/projects/")); | 1498 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 1489 pathOffset += 17; | 1499 pathOffset += 12; |
| 1490 index = path.indexOf(":commit", pathOffset); | 1500 index = path.indexOf(":commit", pathOffset); |
| 1491 unittest.expect(index >= 0, unittest.isTrue); | 1501 unittest.expect(index >= 0, unittest.isTrue); |
| 1492 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1502 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1493 pathOffset = index; | 1503 pathOffset = index; |
| 1494 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 1504 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 1495 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als(":commit")); | 1505 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als(":commit")); |
| 1496 pathOffset += 7; | 1506 pathOffset += 7; |
| 1497 | 1507 |
| 1498 var query = (req.url).query; | 1508 var query = (req.url).query; |
| 1499 var queryOffset = 0; | 1509 var queryOffset = 0; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1533 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1543 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1534 var obj = new api.LookupRequest.fromJson(json); | 1544 var obj = new api.LookupRequest.fromJson(json); |
| 1535 checkLookupRequest(obj); | 1545 checkLookupRequest(obj); |
| 1536 | 1546 |
| 1537 var path = (req.url).path; | 1547 var path = (req.url).path; |
| 1538 var pathOffset = 0; | 1548 var pathOffset = 0; |
| 1539 var index; | 1549 var index; |
| 1540 var subPart; | 1550 var subPart; |
| 1541 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1551 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1542 pathOffset += 1; | 1552 pathOffset += 1; |
| 1543 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta3/projects/")); | 1553 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 1544 pathOffset += 17; | 1554 pathOffset += 12; |
| 1545 index = path.indexOf(":lookup", pathOffset); | 1555 index = path.indexOf(":lookup", pathOffset); |
| 1546 unittest.expect(index >= 0, unittest.isTrue); | 1556 unittest.expect(index >= 0, unittest.isTrue); |
| 1547 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1557 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1548 pathOffset = index; | 1558 pathOffset = index; |
| 1549 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 1559 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 1550 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als(":lookup")); | 1560 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als(":lookup")); |
| 1551 pathOffset += 7; | 1561 pathOffset += 7; |
| 1552 | 1562 |
| 1553 var query = (req.url).query; | 1563 var query = (req.url).query; |
| 1554 var queryOffset = 0; | 1564 var queryOffset = 0; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1588 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1598 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1589 var obj = new api.RollbackRequest.fromJson(json); | 1599 var obj = new api.RollbackRequest.fromJson(json); |
| 1590 checkRollbackRequest(obj); | 1600 checkRollbackRequest(obj); |
| 1591 | 1601 |
| 1592 var path = (req.url).path; | 1602 var path = (req.url).path; |
| 1593 var pathOffset = 0; | 1603 var pathOffset = 0; |
| 1594 var index; | 1604 var index; |
| 1595 var subPart; | 1605 var subPart; |
| 1596 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1606 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1597 pathOffset += 1; | 1607 pathOffset += 1; |
| 1598 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta3/projects/")); | 1608 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 1599 pathOffset += 17; | 1609 pathOffset += 12; |
| 1600 index = path.indexOf(":rollback", pathOffset); | 1610 index = path.indexOf(":rollback", pathOffset); |
| 1601 unittest.expect(index >= 0, unittest.isTrue); | 1611 unittest.expect(index >= 0, unittest.isTrue); |
| 1602 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1612 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1603 pathOffset = index; | 1613 pathOffset = index; |
| 1604 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 1614 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 1605 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als(":rollback")); | 1615 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als(":rollback")); |
| 1606 pathOffset += 9; | 1616 pathOffset += 9; |
| 1607 | 1617 |
| 1608 var query = (req.url).query; | 1618 var query = (req.url).query; |
| 1609 var queryOffset = 0; | 1619 var queryOffset = 0; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1643 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1653 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1644 var obj = new api.RunQueryRequest.fromJson(json); | 1654 var obj = new api.RunQueryRequest.fromJson(json); |
| 1645 checkRunQueryRequest(obj); | 1655 checkRunQueryRequest(obj); |
| 1646 | 1656 |
| 1647 var path = (req.url).path; | 1657 var path = (req.url).path; |
| 1648 var pathOffset = 0; | 1658 var pathOffset = 0; |
| 1649 var index; | 1659 var index; |
| 1650 var subPart; | 1660 var subPart; |
| 1651 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1661 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1652 pathOffset += 1; | 1662 pathOffset += 1; |
| 1653 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1beta3/projects/")); | 1663 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
| 1654 pathOffset += 17; | 1664 pathOffset += 12; |
| 1655 index = path.indexOf(":runQuery", pathOffset); | 1665 index = path.indexOf(":runQuery", pathOffset); |
| 1656 unittest.expect(index >= 0, unittest.isTrue); | 1666 unittest.expect(index >= 0, unittest.isTrue); |
| 1657 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1667 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 1658 pathOffset = index; | 1668 pathOffset = index; |
| 1659 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 1669 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 1660 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als(":runQuery")); | 1670 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als(":runQuery")); |
| 1661 pathOffset += 9; | 1671 pathOffset += 9; |
| 1662 | 1672 |
| 1663 var query = (req.url).query; | 1673 var query = (req.url).query; |
| 1664 var queryOffset = 0; | 1674 var queryOffset = 0; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1687 res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync(((api.R
unQueryResponse response) { | 1697 res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync(((api.R
unQueryResponse response) { |
| 1688 checkRunQueryResponse(response); | 1698 checkRunQueryResponse(response); |
| 1689 }))); | 1699 }))); |
| 1690 }); | 1700 }); |
| 1691 | 1701 |
| 1692 }); | 1702 }); |
| 1693 | 1703 |
| 1694 | 1704 |
| 1695 } | 1705 } |
| 1696 | 1706 |
| OLD | NEW |