| OLD | NEW |
| 1 library googleapis_beta.logging.v2beta1.test; | 1 library googleapis_beta.logging.v2beta1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 checkLabelDescriptor(api.LabelDescriptor o) { | 125 checkLabelDescriptor(api.LabelDescriptor o) { |
| 126 buildCounterLabelDescriptor++; | 126 buildCounterLabelDescriptor++; |
| 127 if (buildCounterLabelDescriptor < 3) { | 127 if (buildCounterLabelDescriptor < 3) { |
| 128 unittest.expect(o.description, unittest.equals('foo')); | 128 unittest.expect(o.description, unittest.equals('foo')); |
| 129 unittest.expect(o.key, unittest.equals('foo')); | 129 unittest.expect(o.key, unittest.equals('foo')); |
| 130 unittest.expect(o.valueType, unittest.equals('foo')); | 130 unittest.expect(o.valueType, unittest.equals('foo')); |
| 131 } | 131 } |
| 132 buildCounterLabelDescriptor--; | 132 buildCounterLabelDescriptor--; |
| 133 } | 133 } |
| 134 | 134 |
| 135 buildUnnamed4031() { | 135 buildUnnamed4149() { |
| 136 var o = new core.List<core.String>(); | 136 var o = new core.List<core.String>(); |
| 137 o.add("foo"); | 137 o.add("foo"); |
| 138 o.add("foo"); | 138 o.add("foo"); |
| 139 return o; | 139 return o; |
| 140 } | 140 } |
| 141 | 141 |
| 142 checkUnnamed4031(core.List<core.String> o) { | 142 checkUnnamed4149(core.List<core.String> o) { |
| 143 unittest.expect(o, unittest.hasLength(2)); | 143 unittest.expect(o, unittest.hasLength(2)); |
| 144 unittest.expect(o[0], unittest.equals('foo')); | 144 unittest.expect(o[0], unittest.equals('foo')); |
| 145 unittest.expect(o[1], unittest.equals('foo')); | 145 unittest.expect(o[1], unittest.equals('foo')); |
| 146 } | 146 } |
| 147 | 147 |
| 148 core.int buildCounterListLogEntriesRequest = 0; | 148 core.int buildCounterListLogEntriesRequest = 0; |
| 149 buildListLogEntriesRequest() { | 149 buildListLogEntriesRequest() { |
| 150 var o = new api.ListLogEntriesRequest(); | 150 var o = new api.ListLogEntriesRequest(); |
| 151 buildCounterListLogEntriesRequest++; | 151 buildCounterListLogEntriesRequest++; |
| 152 if (buildCounterListLogEntriesRequest < 3) { | 152 if (buildCounterListLogEntriesRequest < 3) { |
| 153 o.filter = "foo"; | 153 o.filter = "foo"; |
| 154 o.orderBy = "foo"; | 154 o.orderBy = "foo"; |
| 155 o.pageSize = 42; | 155 o.pageSize = 42; |
| 156 o.pageToken = "foo"; | 156 o.pageToken = "foo"; |
| 157 o.partialSuccess = true; | 157 o.partialSuccess = true; |
| 158 o.projectIds = buildUnnamed4031(); | 158 o.projectIds = buildUnnamed4149(); |
| 159 } | 159 } |
| 160 buildCounterListLogEntriesRequest--; | 160 buildCounterListLogEntriesRequest--; |
| 161 return o; | 161 return o; |
| 162 } | 162 } |
| 163 | 163 |
| 164 checkListLogEntriesRequest(api.ListLogEntriesRequest o) { | 164 checkListLogEntriesRequest(api.ListLogEntriesRequest o) { |
| 165 buildCounterListLogEntriesRequest++; | 165 buildCounterListLogEntriesRequest++; |
| 166 if (buildCounterListLogEntriesRequest < 3) { | 166 if (buildCounterListLogEntriesRequest < 3) { |
| 167 unittest.expect(o.filter, unittest.equals('foo')); | 167 unittest.expect(o.filter, unittest.equals('foo')); |
| 168 unittest.expect(o.orderBy, unittest.equals('foo')); | 168 unittest.expect(o.orderBy, unittest.equals('foo')); |
| 169 unittest.expect(o.pageSize, unittest.equals(42)); | 169 unittest.expect(o.pageSize, unittest.equals(42)); |
| 170 unittest.expect(o.pageToken, unittest.equals('foo')); | 170 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 171 unittest.expect(o.partialSuccess, unittest.isTrue); | 171 unittest.expect(o.partialSuccess, unittest.isTrue); |
| 172 checkUnnamed4031(o.projectIds); | 172 checkUnnamed4149(o.projectIds); |
| 173 } | 173 } |
| 174 buildCounterListLogEntriesRequest--; | 174 buildCounterListLogEntriesRequest--; |
| 175 } | 175 } |
| 176 | 176 |
| 177 buildUnnamed4032() { | 177 buildUnnamed4150() { |
| 178 var o = new core.List<api.LogEntry>(); | 178 var o = new core.List<api.LogEntry>(); |
| 179 o.add(buildLogEntry()); | 179 o.add(buildLogEntry()); |
| 180 o.add(buildLogEntry()); | 180 o.add(buildLogEntry()); |
| 181 return o; | 181 return o; |
| 182 } | 182 } |
| 183 | 183 |
| 184 checkUnnamed4032(core.List<api.LogEntry> o) { | 184 checkUnnamed4150(core.List<api.LogEntry> o) { |
| 185 unittest.expect(o, unittest.hasLength(2)); | 185 unittest.expect(o, unittest.hasLength(2)); |
| 186 checkLogEntry(o[0]); | 186 checkLogEntry(o[0]); |
| 187 checkLogEntry(o[1]); | 187 checkLogEntry(o[1]); |
| 188 } | 188 } |
| 189 | 189 |
| 190 buildUnnamed4033() { | 190 buildUnnamed4151() { |
| 191 var o = new core.Map<core.String, api.Status>(); | 191 var o = new core.Map<core.String, api.Status>(); |
| 192 o["x"] = buildStatus(); | 192 o["x"] = buildStatus(); |
| 193 o["y"] = buildStatus(); | 193 o["y"] = buildStatus(); |
| 194 return o; | 194 return o; |
| 195 } | 195 } |
| 196 | 196 |
| 197 checkUnnamed4033(core.Map<core.String, api.Status> o) { | 197 checkUnnamed4151(core.Map<core.String, api.Status> o) { |
| 198 unittest.expect(o, unittest.hasLength(2)); | 198 unittest.expect(o, unittest.hasLength(2)); |
| 199 checkStatus(o["x"]); | 199 checkStatus(o["x"]); |
| 200 checkStatus(o["y"]); | 200 checkStatus(o["y"]); |
| 201 } | 201 } |
| 202 | 202 |
| 203 core.int buildCounterListLogEntriesResponse = 0; | 203 core.int buildCounterListLogEntriesResponse = 0; |
| 204 buildListLogEntriesResponse() { | 204 buildListLogEntriesResponse() { |
| 205 var o = new api.ListLogEntriesResponse(); | 205 var o = new api.ListLogEntriesResponse(); |
| 206 buildCounterListLogEntriesResponse++; | 206 buildCounterListLogEntriesResponse++; |
| 207 if (buildCounterListLogEntriesResponse < 3) { | 207 if (buildCounterListLogEntriesResponse < 3) { |
| 208 o.entries = buildUnnamed4032(); | 208 o.entries = buildUnnamed4150(); |
| 209 o.nextPageToken = "foo"; | 209 o.nextPageToken = "foo"; |
| 210 o.projectIdErrors = buildUnnamed4033(); | 210 o.projectIdErrors = buildUnnamed4151(); |
| 211 } | 211 } |
| 212 buildCounterListLogEntriesResponse--; | 212 buildCounterListLogEntriesResponse--; |
| 213 return o; | 213 return o; |
| 214 } | 214 } |
| 215 | 215 |
| 216 checkListLogEntriesResponse(api.ListLogEntriesResponse o) { | 216 checkListLogEntriesResponse(api.ListLogEntriesResponse o) { |
| 217 buildCounterListLogEntriesResponse++; | 217 buildCounterListLogEntriesResponse++; |
| 218 if (buildCounterListLogEntriesResponse < 3) { | 218 if (buildCounterListLogEntriesResponse < 3) { |
| 219 checkUnnamed4032(o.entries); | 219 checkUnnamed4150(o.entries); |
| 220 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 220 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 221 checkUnnamed4033(o.projectIdErrors); | 221 checkUnnamed4151(o.projectIdErrors); |
| 222 } | 222 } |
| 223 buildCounterListLogEntriesResponse--; | 223 buildCounterListLogEntriesResponse--; |
| 224 } | 224 } |
| 225 | 225 |
| 226 buildUnnamed4034() { | 226 buildUnnamed4152() { |
| 227 var o = new core.List<api.LogMetric>(); | 227 var o = new core.List<api.LogMetric>(); |
| 228 o.add(buildLogMetric()); | 228 o.add(buildLogMetric()); |
| 229 o.add(buildLogMetric()); | 229 o.add(buildLogMetric()); |
| 230 return o; | 230 return o; |
| 231 } | 231 } |
| 232 | 232 |
| 233 checkUnnamed4034(core.List<api.LogMetric> o) { | 233 checkUnnamed4152(core.List<api.LogMetric> o) { |
| 234 unittest.expect(o, unittest.hasLength(2)); | 234 unittest.expect(o, unittest.hasLength(2)); |
| 235 checkLogMetric(o[0]); | 235 checkLogMetric(o[0]); |
| 236 checkLogMetric(o[1]); | 236 checkLogMetric(o[1]); |
| 237 } | 237 } |
| 238 | 238 |
| 239 core.int buildCounterListLogMetricsResponse = 0; | 239 core.int buildCounterListLogMetricsResponse = 0; |
| 240 buildListLogMetricsResponse() { | 240 buildListLogMetricsResponse() { |
| 241 var o = new api.ListLogMetricsResponse(); | 241 var o = new api.ListLogMetricsResponse(); |
| 242 buildCounterListLogMetricsResponse++; | 242 buildCounterListLogMetricsResponse++; |
| 243 if (buildCounterListLogMetricsResponse < 3) { | 243 if (buildCounterListLogMetricsResponse < 3) { |
| 244 o.metrics = buildUnnamed4034(); | 244 o.metrics = buildUnnamed4152(); |
| 245 o.nextPageToken = "foo"; | 245 o.nextPageToken = "foo"; |
| 246 } | 246 } |
| 247 buildCounterListLogMetricsResponse--; | 247 buildCounterListLogMetricsResponse--; |
| 248 return o; | 248 return o; |
| 249 } | 249 } |
| 250 | 250 |
| 251 checkListLogMetricsResponse(api.ListLogMetricsResponse o) { | 251 checkListLogMetricsResponse(api.ListLogMetricsResponse o) { |
| 252 buildCounterListLogMetricsResponse++; | 252 buildCounterListLogMetricsResponse++; |
| 253 if (buildCounterListLogMetricsResponse < 3) { | 253 if (buildCounterListLogMetricsResponse < 3) { |
| 254 checkUnnamed4034(o.metrics); | 254 checkUnnamed4152(o.metrics); |
| 255 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 255 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 256 } | 256 } |
| 257 buildCounterListLogMetricsResponse--; | 257 buildCounterListLogMetricsResponse--; |
| 258 } | 258 } |
| 259 | 259 |
| 260 buildUnnamed4035() { | 260 buildUnnamed4153() { |
| 261 var o = new core.List<api.MonitoredResourceDescriptor>(); | 261 var o = new core.List<api.MonitoredResourceDescriptor>(); |
| 262 o.add(buildMonitoredResourceDescriptor()); | 262 o.add(buildMonitoredResourceDescriptor()); |
| 263 o.add(buildMonitoredResourceDescriptor()); | 263 o.add(buildMonitoredResourceDescriptor()); |
| 264 return o; | 264 return o; |
| 265 } | 265 } |
| 266 | 266 |
| 267 checkUnnamed4035(core.List<api.MonitoredResourceDescriptor> o) { | 267 checkUnnamed4153(core.List<api.MonitoredResourceDescriptor> o) { |
| 268 unittest.expect(o, unittest.hasLength(2)); | 268 unittest.expect(o, unittest.hasLength(2)); |
| 269 checkMonitoredResourceDescriptor(o[0]); | 269 checkMonitoredResourceDescriptor(o[0]); |
| 270 checkMonitoredResourceDescriptor(o[1]); | 270 checkMonitoredResourceDescriptor(o[1]); |
| 271 } | 271 } |
| 272 | 272 |
| 273 core.int buildCounterListMonitoredResourceDescriptorsResponse = 0; | 273 core.int buildCounterListMonitoredResourceDescriptorsResponse = 0; |
| 274 buildListMonitoredResourceDescriptorsResponse() { | 274 buildListMonitoredResourceDescriptorsResponse() { |
| 275 var o = new api.ListMonitoredResourceDescriptorsResponse(); | 275 var o = new api.ListMonitoredResourceDescriptorsResponse(); |
| 276 buildCounterListMonitoredResourceDescriptorsResponse++; | 276 buildCounterListMonitoredResourceDescriptorsResponse++; |
| 277 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { | 277 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { |
| 278 o.nextPageToken = "foo"; | 278 o.nextPageToken = "foo"; |
| 279 o.resourceDescriptors = buildUnnamed4035(); | 279 o.resourceDescriptors = buildUnnamed4153(); |
| 280 } | 280 } |
| 281 buildCounterListMonitoredResourceDescriptorsResponse--; | 281 buildCounterListMonitoredResourceDescriptorsResponse--; |
| 282 return o; | 282 return o; |
| 283 } | 283 } |
| 284 | 284 |
| 285 checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescripto
rsResponse o) { | 285 checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescripto
rsResponse o) { |
| 286 buildCounterListMonitoredResourceDescriptorsResponse++; | 286 buildCounterListMonitoredResourceDescriptorsResponse++; |
| 287 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { | 287 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { |
| 288 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 288 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 289 checkUnnamed4035(o.resourceDescriptors); | 289 checkUnnamed4153(o.resourceDescriptors); |
| 290 } | 290 } |
| 291 buildCounterListMonitoredResourceDescriptorsResponse--; | 291 buildCounterListMonitoredResourceDescriptorsResponse--; |
| 292 } | 292 } |
| 293 | 293 |
| 294 buildUnnamed4036() { | 294 buildUnnamed4154() { |
| 295 var o = new core.List<api.LogSink>(); | 295 var o = new core.List<api.LogSink>(); |
| 296 o.add(buildLogSink()); | 296 o.add(buildLogSink()); |
| 297 o.add(buildLogSink()); | 297 o.add(buildLogSink()); |
| 298 return o; | 298 return o; |
| 299 } | 299 } |
| 300 | 300 |
| 301 checkUnnamed4036(core.List<api.LogSink> o) { | 301 checkUnnamed4154(core.List<api.LogSink> o) { |
| 302 unittest.expect(o, unittest.hasLength(2)); | 302 unittest.expect(o, unittest.hasLength(2)); |
| 303 checkLogSink(o[0]); | 303 checkLogSink(o[0]); |
| 304 checkLogSink(o[1]); | 304 checkLogSink(o[1]); |
| 305 } | 305 } |
| 306 | 306 |
| 307 core.int buildCounterListSinksResponse = 0; | 307 core.int buildCounterListSinksResponse = 0; |
| 308 buildListSinksResponse() { | 308 buildListSinksResponse() { |
| 309 var o = new api.ListSinksResponse(); | 309 var o = new api.ListSinksResponse(); |
| 310 buildCounterListSinksResponse++; | 310 buildCounterListSinksResponse++; |
| 311 if (buildCounterListSinksResponse < 3) { | 311 if (buildCounterListSinksResponse < 3) { |
| 312 o.nextPageToken = "foo"; | 312 o.nextPageToken = "foo"; |
| 313 o.sinks = buildUnnamed4036(); | 313 o.sinks = buildUnnamed4154(); |
| 314 } | 314 } |
| 315 buildCounterListSinksResponse--; | 315 buildCounterListSinksResponse--; |
| 316 return o; | 316 return o; |
| 317 } | 317 } |
| 318 | 318 |
| 319 checkListSinksResponse(api.ListSinksResponse o) { | 319 checkListSinksResponse(api.ListSinksResponse o) { |
| 320 buildCounterListSinksResponse++; | 320 buildCounterListSinksResponse++; |
| 321 if (buildCounterListSinksResponse < 3) { | 321 if (buildCounterListSinksResponse < 3) { |
| 322 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 322 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 323 checkUnnamed4036(o.sinks); | 323 checkUnnamed4154(o.sinks); |
| 324 } | 324 } |
| 325 buildCounterListSinksResponse--; | 325 buildCounterListSinksResponse--; |
| 326 } | 326 } |
| 327 | 327 |
| 328 buildUnnamed4037() { | 328 buildUnnamed4155() { |
| 329 var o = new core.Map<core.String, core.Object>(); | 329 var o = new core.Map<core.String, core.Object>(); |
| 330 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 330 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 331 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 331 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 332 return o; | 332 return o; |
| 333 } | 333 } |
| 334 | 334 |
| 335 checkUnnamed4037(core.Map<core.String, core.Object> o) { | 335 checkUnnamed4155(core.Map<core.String, core.Object> o) { |
| 336 unittest.expect(o, unittest.hasLength(2)); | 336 unittest.expect(o, unittest.hasLength(2)); |
| 337 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')); | 337 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')); |
| 338 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')); | 338 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')); |
| 339 } | 339 } |
| 340 | 340 |
| 341 buildUnnamed4038() { | 341 buildUnnamed4156() { |
| 342 var o = new core.Map<core.String, core.String>(); | 342 var o = new core.Map<core.String, core.String>(); |
| 343 o["x"] = "foo"; | 343 o["x"] = "foo"; |
| 344 o["y"] = "foo"; | 344 o["y"] = "foo"; |
| 345 return o; | 345 return o; |
| 346 } | 346 } |
| 347 | 347 |
| 348 checkUnnamed4038(core.Map<core.String, core.String> o) { | 348 checkUnnamed4156(core.Map<core.String, core.String> o) { |
| 349 unittest.expect(o, unittest.hasLength(2)); | 349 unittest.expect(o, unittest.hasLength(2)); |
| 350 unittest.expect(o["x"], unittest.equals('foo')); | 350 unittest.expect(o["x"], unittest.equals('foo')); |
| 351 unittest.expect(o["y"], unittest.equals('foo')); | 351 unittest.expect(o["y"], unittest.equals('foo')); |
| 352 } | 352 } |
| 353 | 353 |
| 354 buildUnnamed4039() { | 354 buildUnnamed4157() { |
| 355 var o = new core.Map<core.String, core.Object>(); | 355 var o = new core.Map<core.String, core.Object>(); |
| 356 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 356 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 357 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 357 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 358 return o; | 358 return o; |
| 359 } | 359 } |
| 360 | 360 |
| 361 checkUnnamed4039(core.Map<core.String, core.Object> o) { | 361 checkUnnamed4157(core.Map<core.String, core.Object> o) { |
| 362 unittest.expect(o, unittest.hasLength(2)); | 362 unittest.expect(o, unittest.hasLength(2)); |
| 363 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')); | 363 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')); |
| 364 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')); | 364 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')); |
| 365 } | 365 } |
| 366 | 366 |
| 367 core.int buildCounterLogEntry = 0; | 367 core.int buildCounterLogEntry = 0; |
| 368 buildLogEntry() { | 368 buildLogEntry() { |
| 369 var o = new api.LogEntry(); | 369 var o = new api.LogEntry(); |
| 370 buildCounterLogEntry++; | 370 buildCounterLogEntry++; |
| 371 if (buildCounterLogEntry < 3) { | 371 if (buildCounterLogEntry < 3) { |
| 372 o.httpRequest = buildHttpRequest(); | 372 o.httpRequest = buildHttpRequest(); |
| 373 o.insertId = "foo"; | 373 o.insertId = "foo"; |
| 374 o.jsonPayload = buildUnnamed4037(); | 374 o.jsonPayload = buildUnnamed4155(); |
| 375 o.labels = buildUnnamed4038(); | 375 o.labels = buildUnnamed4156(); |
| 376 o.logName = "foo"; | 376 o.logName = "foo"; |
| 377 o.operation = buildLogEntryOperation(); | 377 o.operation = buildLogEntryOperation(); |
| 378 o.protoPayload = buildUnnamed4039(); | 378 o.protoPayload = buildUnnamed4157(); |
| 379 o.resource = buildMonitoredResource(); | 379 o.resource = buildMonitoredResource(); |
| 380 o.severity = "foo"; | 380 o.severity = "foo"; |
| 381 o.textPayload = "foo"; | 381 o.textPayload = "foo"; |
| 382 o.timestamp = "foo"; | 382 o.timestamp = "foo"; |
| 383 } | 383 } |
| 384 buildCounterLogEntry--; | 384 buildCounterLogEntry--; |
| 385 return o; | 385 return o; |
| 386 } | 386 } |
| 387 | 387 |
| 388 checkLogEntry(api.LogEntry o) { | 388 checkLogEntry(api.LogEntry o) { |
| 389 buildCounterLogEntry++; | 389 buildCounterLogEntry++; |
| 390 if (buildCounterLogEntry < 3) { | 390 if (buildCounterLogEntry < 3) { |
| 391 checkHttpRequest(o.httpRequest); | 391 checkHttpRequest(o.httpRequest); |
| 392 unittest.expect(o.insertId, unittest.equals('foo')); | 392 unittest.expect(o.insertId, unittest.equals('foo')); |
| 393 checkUnnamed4037(o.jsonPayload); | 393 checkUnnamed4155(o.jsonPayload); |
| 394 checkUnnamed4038(o.labels); | 394 checkUnnamed4156(o.labels); |
| 395 unittest.expect(o.logName, unittest.equals('foo')); | 395 unittest.expect(o.logName, unittest.equals('foo')); |
| 396 checkLogEntryOperation(o.operation); | 396 checkLogEntryOperation(o.operation); |
| 397 checkUnnamed4039(o.protoPayload); | 397 checkUnnamed4157(o.protoPayload); |
| 398 checkMonitoredResource(o.resource); | 398 checkMonitoredResource(o.resource); |
| 399 unittest.expect(o.severity, unittest.equals('foo')); | 399 unittest.expect(o.severity, unittest.equals('foo')); |
| 400 unittest.expect(o.textPayload, unittest.equals('foo')); | 400 unittest.expect(o.textPayload, unittest.equals('foo')); |
| 401 unittest.expect(o.timestamp, unittest.equals('foo')); | 401 unittest.expect(o.timestamp, unittest.equals('foo')); |
| 402 } | 402 } |
| 403 buildCounterLogEntry--; | 403 buildCounterLogEntry--; |
| 404 } | 404 } |
| 405 | 405 |
| 406 core.int buildCounterLogEntryOperation = 0; | 406 core.int buildCounterLogEntryOperation = 0; |
| 407 buildLogEntryOperation() { | 407 buildLogEntryOperation() { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 buildCounterLogSink++; | 494 buildCounterLogSink++; |
| 495 if (buildCounterLogSink < 3) { | 495 if (buildCounterLogSink < 3) { |
| 496 unittest.expect(o.destination, unittest.equals('foo')); | 496 unittest.expect(o.destination, unittest.equals('foo')); |
| 497 unittest.expect(o.filter, unittest.equals('foo')); | 497 unittest.expect(o.filter, unittest.equals('foo')); |
| 498 unittest.expect(o.name, unittest.equals('foo')); | 498 unittest.expect(o.name, unittest.equals('foo')); |
| 499 unittest.expect(o.outputVersionFormat, unittest.equals('foo')); | 499 unittest.expect(o.outputVersionFormat, unittest.equals('foo')); |
| 500 } | 500 } |
| 501 buildCounterLogSink--; | 501 buildCounterLogSink--; |
| 502 } | 502 } |
| 503 | 503 |
| 504 buildUnnamed4040() { | 504 buildUnnamed4158() { |
| 505 var o = new core.Map<core.String, core.String>(); | 505 var o = new core.Map<core.String, core.String>(); |
| 506 o["x"] = "foo"; | 506 o["x"] = "foo"; |
| 507 o["y"] = "foo"; | 507 o["y"] = "foo"; |
| 508 return o; | 508 return o; |
| 509 } | 509 } |
| 510 | 510 |
| 511 checkUnnamed4040(core.Map<core.String, core.String> o) { | 511 checkUnnamed4158(core.Map<core.String, core.String> o) { |
| 512 unittest.expect(o, unittest.hasLength(2)); | 512 unittest.expect(o, unittest.hasLength(2)); |
| 513 unittest.expect(o["x"], unittest.equals('foo')); | 513 unittest.expect(o["x"], unittest.equals('foo')); |
| 514 unittest.expect(o["y"], unittest.equals('foo')); | 514 unittest.expect(o["y"], unittest.equals('foo')); |
| 515 } | 515 } |
| 516 | 516 |
| 517 core.int buildCounterMonitoredResource = 0; | 517 core.int buildCounterMonitoredResource = 0; |
| 518 buildMonitoredResource() { | 518 buildMonitoredResource() { |
| 519 var o = new api.MonitoredResource(); | 519 var o = new api.MonitoredResource(); |
| 520 buildCounterMonitoredResource++; | 520 buildCounterMonitoredResource++; |
| 521 if (buildCounterMonitoredResource < 3) { | 521 if (buildCounterMonitoredResource < 3) { |
| 522 o.labels = buildUnnamed4040(); | 522 o.labels = buildUnnamed4158(); |
| 523 o.type = "foo"; | 523 o.type = "foo"; |
| 524 } | 524 } |
| 525 buildCounterMonitoredResource--; | 525 buildCounterMonitoredResource--; |
| 526 return o; | 526 return o; |
| 527 } | 527 } |
| 528 | 528 |
| 529 checkMonitoredResource(api.MonitoredResource o) { | 529 checkMonitoredResource(api.MonitoredResource o) { |
| 530 buildCounterMonitoredResource++; | 530 buildCounterMonitoredResource++; |
| 531 if (buildCounterMonitoredResource < 3) { | 531 if (buildCounterMonitoredResource < 3) { |
| 532 checkUnnamed4040(o.labels); | 532 checkUnnamed4158(o.labels); |
| 533 unittest.expect(o.type, unittest.equals('foo')); | 533 unittest.expect(o.type, unittest.equals('foo')); |
| 534 } | 534 } |
| 535 buildCounterMonitoredResource--; | 535 buildCounterMonitoredResource--; |
| 536 } | 536 } |
| 537 | 537 |
| 538 buildUnnamed4041() { | 538 buildUnnamed4159() { |
| 539 var o = new core.List<api.LabelDescriptor>(); | 539 var o = new core.List<api.LabelDescriptor>(); |
| 540 o.add(buildLabelDescriptor()); | 540 o.add(buildLabelDescriptor()); |
| 541 o.add(buildLabelDescriptor()); | 541 o.add(buildLabelDescriptor()); |
| 542 return o; | 542 return o; |
| 543 } | 543 } |
| 544 | 544 |
| 545 checkUnnamed4041(core.List<api.LabelDescriptor> o) { | 545 checkUnnamed4159(core.List<api.LabelDescriptor> o) { |
| 546 unittest.expect(o, unittest.hasLength(2)); | 546 unittest.expect(o, unittest.hasLength(2)); |
| 547 checkLabelDescriptor(o[0]); | 547 checkLabelDescriptor(o[0]); |
| 548 checkLabelDescriptor(o[1]); | 548 checkLabelDescriptor(o[1]); |
| 549 } | 549 } |
| 550 | 550 |
| 551 core.int buildCounterMonitoredResourceDescriptor = 0; | 551 core.int buildCounterMonitoredResourceDescriptor = 0; |
| 552 buildMonitoredResourceDescriptor() { | 552 buildMonitoredResourceDescriptor() { |
| 553 var o = new api.MonitoredResourceDescriptor(); | 553 var o = new api.MonitoredResourceDescriptor(); |
| 554 buildCounterMonitoredResourceDescriptor++; | 554 buildCounterMonitoredResourceDescriptor++; |
| 555 if (buildCounterMonitoredResourceDescriptor < 3) { | 555 if (buildCounterMonitoredResourceDescriptor < 3) { |
| 556 o.description = "foo"; | 556 o.description = "foo"; |
| 557 o.displayName = "foo"; | 557 o.displayName = "foo"; |
| 558 o.labels = buildUnnamed4041(); | 558 o.labels = buildUnnamed4159(); |
| 559 o.name = "foo"; | 559 o.name = "foo"; |
| 560 o.type = "foo"; | 560 o.type = "foo"; |
| 561 } | 561 } |
| 562 buildCounterMonitoredResourceDescriptor--; | 562 buildCounterMonitoredResourceDescriptor--; |
| 563 return o; | 563 return o; |
| 564 } | 564 } |
| 565 | 565 |
| 566 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 566 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
| 567 buildCounterMonitoredResourceDescriptor++; | 567 buildCounterMonitoredResourceDescriptor++; |
| 568 if (buildCounterMonitoredResourceDescriptor < 3) { | 568 if (buildCounterMonitoredResourceDescriptor < 3) { |
| 569 unittest.expect(o.description, unittest.equals('foo')); | 569 unittest.expect(o.description, unittest.equals('foo')); |
| 570 unittest.expect(o.displayName, unittest.equals('foo')); | 570 unittest.expect(o.displayName, unittest.equals('foo')); |
| 571 checkUnnamed4041(o.labels); | 571 checkUnnamed4159(o.labels); |
| 572 unittest.expect(o.name, unittest.equals('foo')); | 572 unittest.expect(o.name, unittest.equals('foo')); |
| 573 unittest.expect(o.type, unittest.equals('foo')); | 573 unittest.expect(o.type, unittest.equals('foo')); |
| 574 } | 574 } |
| 575 buildCounterMonitoredResourceDescriptor--; | 575 buildCounterMonitoredResourceDescriptor--; |
| 576 } | 576 } |
| 577 | 577 |
| 578 buildUnnamed4042() { | 578 buildUnnamed4160() { |
| 579 var o = new core.List<api.LogLine>(); | 579 var o = new core.List<api.LogLine>(); |
| 580 o.add(buildLogLine()); | 580 o.add(buildLogLine()); |
| 581 o.add(buildLogLine()); | 581 o.add(buildLogLine()); |
| 582 return o; | 582 return o; |
| 583 } | 583 } |
| 584 | 584 |
| 585 checkUnnamed4042(core.List<api.LogLine> o) { | 585 checkUnnamed4160(core.List<api.LogLine> o) { |
| 586 unittest.expect(o, unittest.hasLength(2)); | 586 unittest.expect(o, unittest.hasLength(2)); |
| 587 checkLogLine(o[0]); | 587 checkLogLine(o[0]); |
| 588 checkLogLine(o[1]); | 588 checkLogLine(o[1]); |
| 589 } | 589 } |
| 590 | 590 |
| 591 buildUnnamed4043() { | 591 buildUnnamed4161() { |
| 592 var o = new core.List<api.SourceReference>(); | 592 var o = new core.List<api.SourceReference>(); |
| 593 o.add(buildSourceReference()); | 593 o.add(buildSourceReference()); |
| 594 o.add(buildSourceReference()); | 594 o.add(buildSourceReference()); |
| 595 return o; | 595 return o; |
| 596 } | 596 } |
| 597 | 597 |
| 598 checkUnnamed4043(core.List<api.SourceReference> o) { | 598 checkUnnamed4161(core.List<api.SourceReference> o) { |
| 599 unittest.expect(o, unittest.hasLength(2)); | 599 unittest.expect(o, unittest.hasLength(2)); |
| 600 checkSourceReference(o[0]); | 600 checkSourceReference(o[0]); |
| 601 checkSourceReference(o[1]); | 601 checkSourceReference(o[1]); |
| 602 } | 602 } |
| 603 | 603 |
| 604 core.int buildCounterRequestLog = 0; | 604 core.int buildCounterRequestLog = 0; |
| 605 buildRequestLog() { | 605 buildRequestLog() { |
| 606 var o = new api.RequestLog(); | 606 var o = new api.RequestLog(); |
| 607 buildCounterRequestLog++; | 607 buildCounterRequestLog++; |
| 608 if (buildCounterRequestLog < 3) { | 608 if (buildCounterRequestLog < 3) { |
| 609 o.appEngineRelease = "foo"; | 609 o.appEngineRelease = "foo"; |
| 610 o.appId = "foo"; | 610 o.appId = "foo"; |
| 611 o.cost = 42.0; | 611 o.cost = 42.0; |
| 612 o.endTime = "foo"; | 612 o.endTime = "foo"; |
| 613 o.finished = true; | 613 o.finished = true; |
| 614 o.first = true; | 614 o.first = true; |
| 615 o.host = "foo"; | 615 o.host = "foo"; |
| 616 o.httpVersion = "foo"; | 616 o.httpVersion = "foo"; |
| 617 o.instanceId = "foo"; | 617 o.instanceId = "foo"; |
| 618 o.instanceIndex = 42; | 618 o.instanceIndex = 42; |
| 619 o.ip = "foo"; | 619 o.ip = "foo"; |
| 620 o.latency = "foo"; | 620 o.latency = "foo"; |
| 621 o.line = buildUnnamed4042(); | 621 o.line = buildUnnamed4160(); |
| 622 o.megaCycles = "foo"; | 622 o.megaCycles = "foo"; |
| 623 o.method = "foo"; | 623 o.method = "foo"; |
| 624 o.moduleId = "foo"; | 624 o.moduleId = "foo"; |
| 625 o.nickname = "foo"; | 625 o.nickname = "foo"; |
| 626 o.pendingTime = "foo"; | 626 o.pendingTime = "foo"; |
| 627 o.referrer = "foo"; | 627 o.referrer = "foo"; |
| 628 o.requestId = "foo"; | 628 o.requestId = "foo"; |
| 629 o.resource = "foo"; | 629 o.resource = "foo"; |
| 630 o.responseSize = "foo"; | 630 o.responseSize = "foo"; |
| 631 o.sourceReference = buildUnnamed4043(); | 631 o.sourceReference = buildUnnamed4161(); |
| 632 o.startTime = "foo"; | 632 o.startTime = "foo"; |
| 633 o.status = 42; | 633 o.status = 42; |
| 634 o.taskName = "foo"; | 634 o.taskName = "foo"; |
| 635 o.taskQueueName = "foo"; | 635 o.taskQueueName = "foo"; |
| 636 o.traceId = "foo"; | 636 o.traceId = "foo"; |
| 637 o.urlMapEntry = "foo"; | 637 o.urlMapEntry = "foo"; |
| 638 o.userAgent = "foo"; | 638 o.userAgent = "foo"; |
| 639 o.versionId = "foo"; | 639 o.versionId = "foo"; |
| 640 o.wasLoadingRequest = true; | 640 o.wasLoadingRequest = true; |
| 641 } | 641 } |
| 642 buildCounterRequestLog--; | 642 buildCounterRequestLog--; |
| 643 return o; | 643 return o; |
| 644 } | 644 } |
| 645 | 645 |
| 646 checkRequestLog(api.RequestLog o) { | 646 checkRequestLog(api.RequestLog o) { |
| 647 buildCounterRequestLog++; | 647 buildCounterRequestLog++; |
| 648 if (buildCounterRequestLog < 3) { | 648 if (buildCounterRequestLog < 3) { |
| 649 unittest.expect(o.appEngineRelease, unittest.equals('foo')); | 649 unittest.expect(o.appEngineRelease, unittest.equals('foo')); |
| 650 unittest.expect(o.appId, unittest.equals('foo')); | 650 unittest.expect(o.appId, unittest.equals('foo')); |
| 651 unittest.expect(o.cost, unittest.equals(42.0)); | 651 unittest.expect(o.cost, unittest.equals(42.0)); |
| 652 unittest.expect(o.endTime, unittest.equals('foo')); | 652 unittest.expect(o.endTime, unittest.equals('foo')); |
| 653 unittest.expect(o.finished, unittest.isTrue); | 653 unittest.expect(o.finished, unittest.isTrue); |
| 654 unittest.expect(o.first, unittest.isTrue); | 654 unittest.expect(o.first, unittest.isTrue); |
| 655 unittest.expect(o.host, unittest.equals('foo')); | 655 unittest.expect(o.host, unittest.equals('foo')); |
| 656 unittest.expect(o.httpVersion, unittest.equals('foo')); | 656 unittest.expect(o.httpVersion, unittest.equals('foo')); |
| 657 unittest.expect(o.instanceId, unittest.equals('foo')); | 657 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 658 unittest.expect(o.instanceIndex, unittest.equals(42)); | 658 unittest.expect(o.instanceIndex, unittest.equals(42)); |
| 659 unittest.expect(o.ip, unittest.equals('foo')); | 659 unittest.expect(o.ip, unittest.equals('foo')); |
| 660 unittest.expect(o.latency, unittest.equals('foo')); | 660 unittest.expect(o.latency, unittest.equals('foo')); |
| 661 checkUnnamed4042(o.line); | 661 checkUnnamed4160(o.line); |
| 662 unittest.expect(o.megaCycles, unittest.equals('foo')); | 662 unittest.expect(o.megaCycles, unittest.equals('foo')); |
| 663 unittest.expect(o.method, unittest.equals('foo')); | 663 unittest.expect(o.method, unittest.equals('foo')); |
| 664 unittest.expect(o.moduleId, unittest.equals('foo')); | 664 unittest.expect(o.moduleId, unittest.equals('foo')); |
| 665 unittest.expect(o.nickname, unittest.equals('foo')); | 665 unittest.expect(o.nickname, unittest.equals('foo')); |
| 666 unittest.expect(o.pendingTime, unittest.equals('foo')); | 666 unittest.expect(o.pendingTime, unittest.equals('foo')); |
| 667 unittest.expect(o.referrer, unittest.equals('foo')); | 667 unittest.expect(o.referrer, unittest.equals('foo')); |
| 668 unittest.expect(o.requestId, unittest.equals('foo')); | 668 unittest.expect(o.requestId, unittest.equals('foo')); |
| 669 unittest.expect(o.resource, unittest.equals('foo')); | 669 unittest.expect(o.resource, unittest.equals('foo')); |
| 670 unittest.expect(o.responseSize, unittest.equals('foo')); | 670 unittest.expect(o.responseSize, unittest.equals('foo')); |
| 671 checkUnnamed4043(o.sourceReference); | 671 checkUnnamed4161(o.sourceReference); |
| 672 unittest.expect(o.startTime, unittest.equals('foo')); | 672 unittest.expect(o.startTime, unittest.equals('foo')); |
| 673 unittest.expect(o.status, unittest.equals(42)); | 673 unittest.expect(o.status, unittest.equals(42)); |
| 674 unittest.expect(o.taskName, unittest.equals('foo')); | 674 unittest.expect(o.taskName, unittest.equals('foo')); |
| 675 unittest.expect(o.taskQueueName, unittest.equals('foo')); | 675 unittest.expect(o.taskQueueName, unittest.equals('foo')); |
| 676 unittest.expect(o.traceId, unittest.equals('foo')); | 676 unittest.expect(o.traceId, unittest.equals('foo')); |
| 677 unittest.expect(o.urlMapEntry, unittest.equals('foo')); | 677 unittest.expect(o.urlMapEntry, unittest.equals('foo')); |
| 678 unittest.expect(o.userAgent, unittest.equals('foo')); | 678 unittest.expect(o.userAgent, unittest.equals('foo')); |
| 679 unittest.expect(o.versionId, unittest.equals('foo')); | 679 unittest.expect(o.versionId, unittest.equals('foo')); |
| 680 unittest.expect(o.wasLoadingRequest, unittest.isTrue); | 680 unittest.expect(o.wasLoadingRequest, unittest.isTrue); |
| 681 } | 681 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 | 719 |
| 720 checkSourceReference(api.SourceReference o) { | 720 checkSourceReference(api.SourceReference o) { |
| 721 buildCounterSourceReference++; | 721 buildCounterSourceReference++; |
| 722 if (buildCounterSourceReference < 3) { | 722 if (buildCounterSourceReference < 3) { |
| 723 unittest.expect(o.repository, unittest.equals('foo')); | 723 unittest.expect(o.repository, unittest.equals('foo')); |
| 724 unittest.expect(o.revisionId, unittest.equals('foo')); | 724 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 725 } | 725 } |
| 726 buildCounterSourceReference--; | 726 buildCounterSourceReference--; |
| 727 } | 727 } |
| 728 | 728 |
| 729 buildUnnamed4044() { | 729 buildUnnamed4162() { |
| 730 var o = new core.Map<core.String, core.Object>(); | 730 var o = new core.Map<core.String, core.Object>(); |
| 731 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 731 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 732 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 732 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 733 return o; | 733 return o; |
| 734 } | 734 } |
| 735 | 735 |
| 736 checkUnnamed4044(core.Map<core.String, core.Object> o) { | 736 checkUnnamed4162(core.Map<core.String, core.Object> o) { |
| 737 unittest.expect(o, unittest.hasLength(2)); | 737 unittest.expect(o, unittest.hasLength(2)); |
| 738 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')); | 738 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')); |
| 739 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')); | 739 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')); |
| 740 } | 740 } |
| 741 | 741 |
| 742 buildUnnamed4045() { | 742 buildUnnamed4163() { |
| 743 var o = new core.List<core.Map<core.String, core.Object>>(); | 743 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 744 o.add(buildUnnamed4044()); | 744 o.add(buildUnnamed4162()); |
| 745 o.add(buildUnnamed4044()); | 745 o.add(buildUnnamed4162()); |
| 746 return o; | 746 return o; |
| 747 } | 747 } |
| 748 | 748 |
| 749 checkUnnamed4045(core.List<core.Map<core.String, core.Object>> o) { | 749 checkUnnamed4163(core.List<core.Map<core.String, core.Object>> o) { |
| 750 unittest.expect(o, unittest.hasLength(2)); | 750 unittest.expect(o, unittest.hasLength(2)); |
| 751 checkUnnamed4044(o[0]); | 751 checkUnnamed4162(o[0]); |
| 752 checkUnnamed4044(o[1]); | 752 checkUnnamed4162(o[1]); |
| 753 } | 753 } |
| 754 | 754 |
| 755 core.int buildCounterStatus = 0; | 755 core.int buildCounterStatus = 0; |
| 756 buildStatus() { | 756 buildStatus() { |
| 757 var o = new api.Status(); | 757 var o = new api.Status(); |
| 758 buildCounterStatus++; | 758 buildCounterStatus++; |
| 759 if (buildCounterStatus < 3) { | 759 if (buildCounterStatus < 3) { |
| 760 o.code = 42; | 760 o.code = 42; |
| 761 o.details = buildUnnamed4045(); | 761 o.details = buildUnnamed4163(); |
| 762 o.message = "foo"; | 762 o.message = "foo"; |
| 763 } | 763 } |
| 764 buildCounterStatus--; | 764 buildCounterStatus--; |
| 765 return o; | 765 return o; |
| 766 } | 766 } |
| 767 | 767 |
| 768 checkStatus(api.Status o) { | 768 checkStatus(api.Status o) { |
| 769 buildCounterStatus++; | 769 buildCounterStatus++; |
| 770 if (buildCounterStatus < 3) { | 770 if (buildCounterStatus < 3) { |
| 771 unittest.expect(o.code, unittest.equals(42)); | 771 unittest.expect(o.code, unittest.equals(42)); |
| 772 checkUnnamed4045(o.details); | 772 checkUnnamed4163(o.details); |
| 773 unittest.expect(o.message, unittest.equals('foo')); | 773 unittest.expect(o.message, unittest.equals('foo')); |
| 774 } | 774 } |
| 775 buildCounterStatus--; | 775 buildCounterStatus--; |
| 776 } | 776 } |
| 777 | 777 |
| 778 buildUnnamed4046() { | 778 buildUnnamed4164() { |
| 779 var o = new core.List<api.LogEntry>(); | 779 var o = new core.List<api.LogEntry>(); |
| 780 o.add(buildLogEntry()); | 780 o.add(buildLogEntry()); |
| 781 o.add(buildLogEntry()); | 781 o.add(buildLogEntry()); |
| 782 return o; | 782 return o; |
| 783 } | 783 } |
| 784 | 784 |
| 785 checkUnnamed4046(core.List<api.LogEntry> o) { | 785 checkUnnamed4164(core.List<api.LogEntry> o) { |
| 786 unittest.expect(o, unittest.hasLength(2)); | 786 unittest.expect(o, unittest.hasLength(2)); |
| 787 checkLogEntry(o[0]); | 787 checkLogEntry(o[0]); |
| 788 checkLogEntry(o[1]); | 788 checkLogEntry(o[1]); |
| 789 } | 789 } |
| 790 | 790 |
| 791 buildUnnamed4047() { | 791 buildUnnamed4165() { |
| 792 var o = new core.Map<core.String, core.String>(); | 792 var o = new core.Map<core.String, core.String>(); |
| 793 o["x"] = "foo"; | 793 o["x"] = "foo"; |
| 794 o["y"] = "foo"; | 794 o["y"] = "foo"; |
| 795 return o; | 795 return o; |
| 796 } | 796 } |
| 797 | 797 |
| 798 checkUnnamed4047(core.Map<core.String, core.String> o) { | 798 checkUnnamed4165(core.Map<core.String, core.String> o) { |
| 799 unittest.expect(o, unittest.hasLength(2)); | 799 unittest.expect(o, unittest.hasLength(2)); |
| 800 unittest.expect(o["x"], unittest.equals('foo')); | 800 unittest.expect(o["x"], unittest.equals('foo')); |
| 801 unittest.expect(o["y"], unittest.equals('foo')); | 801 unittest.expect(o["y"], unittest.equals('foo')); |
| 802 } | 802 } |
| 803 | 803 |
| 804 core.int buildCounterWriteLogEntriesRequest = 0; | 804 core.int buildCounterWriteLogEntriesRequest = 0; |
| 805 buildWriteLogEntriesRequest() { | 805 buildWriteLogEntriesRequest() { |
| 806 var o = new api.WriteLogEntriesRequest(); | 806 var o = new api.WriteLogEntriesRequest(); |
| 807 buildCounterWriteLogEntriesRequest++; | 807 buildCounterWriteLogEntriesRequest++; |
| 808 if (buildCounterWriteLogEntriesRequest < 3) { | 808 if (buildCounterWriteLogEntriesRequest < 3) { |
| 809 o.entries = buildUnnamed4046(); | 809 o.entries = buildUnnamed4164(); |
| 810 o.labels = buildUnnamed4047(); | 810 o.labels = buildUnnamed4165(); |
| 811 o.logName = "foo"; | 811 o.logName = "foo"; |
| 812 o.partialSuccess = true; | 812 o.partialSuccess = true; |
| 813 o.resource = buildMonitoredResource(); | 813 o.resource = buildMonitoredResource(); |
| 814 } | 814 } |
| 815 buildCounterWriteLogEntriesRequest--; | 815 buildCounterWriteLogEntriesRequest--; |
| 816 return o; | 816 return o; |
| 817 } | 817 } |
| 818 | 818 |
| 819 checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { | 819 checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { |
| 820 buildCounterWriteLogEntriesRequest++; | 820 buildCounterWriteLogEntriesRequest++; |
| 821 if (buildCounterWriteLogEntriesRequest < 3) { | 821 if (buildCounterWriteLogEntriesRequest < 3) { |
| 822 checkUnnamed4046(o.entries); | 822 checkUnnamed4164(o.entries); |
| 823 checkUnnamed4047(o.labels); | 823 checkUnnamed4165(o.labels); |
| 824 unittest.expect(o.logName, unittest.equals('foo')); | 824 unittest.expect(o.logName, unittest.equals('foo')); |
| 825 unittest.expect(o.partialSuccess, unittest.isTrue); | 825 unittest.expect(o.partialSuccess, unittest.isTrue); |
| 826 checkMonitoredResource(o.resource); | 826 checkMonitoredResource(o.resource); |
| 827 } | 827 } |
| 828 buildCounterWriteLogEntriesRequest--; | 828 buildCounterWriteLogEntriesRequest--; |
| 829 } | 829 } |
| 830 | 830 |
| 831 core.int buildCounterWriteLogEntriesResponse = 0; | 831 core.int buildCounterWriteLogEntriesResponse = 0; |
| 832 buildWriteLogEntriesResponse() { | 832 buildWriteLogEntriesResponse() { |
| 833 var o = new api.WriteLogEntriesResponse(); | 833 var o = new api.WriteLogEntriesResponse(); |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1711 res.update(arg_request, arg_sinkName).then(unittest.expectAsync(((api.LogS
ink response) { | 1711 res.update(arg_request, arg_sinkName).then(unittest.expectAsync(((api.LogS
ink response) { |
| 1712 checkLogSink(response); | 1712 checkLogSink(response); |
| 1713 }))); | 1713 }))); |
| 1714 }); | 1714 }); |
| 1715 | 1715 |
| 1716 }); | 1716 }); |
| 1717 | 1717 |
| 1718 | 1718 |
| 1719 } | 1719 } |
| 1720 | 1720 |
| OLD | NEW |