Index: generated/googleapis/test/spanner/v1_test.dart |
diff --git a/generated/googleapis/test/spanner/v1_test.dart b/generated/googleapis/test/spanner/v1_test.dart |
index 7151dc04a55db09d717f2ae554a5eabf92455bad..db0dba02c71c3b97c87306fb3a124d06ec77929e 100644 |
--- a/generated/googleapis/test/spanner/v1_test.dart |
+++ b/generated/googleapis/test/spanner/v1_test.dart |
@@ -1,12 +1,10 @@ |
library googleapis.spanner.v1.test; |
import "dart:core" as core; |
-import "dart:collection" as collection; |
import "dart:async" as async; |
import "dart:convert" as convert; |
import 'package:http/http.dart' as http; |
-import 'package:http/testing.dart' as http_testing; |
import 'package:test/test.dart' as unittest; |
import 'package:googleapis/spanner/v1.dart' as api; |
@@ -22,7 +20,8 @@ class HttpServerMock extends http.BaseClient { |
async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
if (_expectJson) { |
- return request.finalize() |
+ return request |
+ .finalize() |
.transform(convert.UTF8.decoder) |
.join('') |
.then((core.String jsonString) { |
@@ -45,114 +44,12 @@ class HttpServerMock extends http.BaseClient { |
} |
} |
-http.StreamedResponse stringResponse( |
- core.int status, core.Map<core.String, core.String> headers, core.String body) { |
+http.StreamedResponse stringResponse(core.int status, |
+ core.Map<core.String, core.String> headers, core.String body) { |
var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
return new http.StreamedResponse(stream, status, headers: headers); |
} |
-buildUnnamed2105() { |
- var o = new core.List<api.AuditLogConfig>(); |
- o.add(buildAuditLogConfig()); |
- o.add(buildAuditLogConfig()); |
- return o; |
-} |
- |
-checkUnnamed2105(core.List<api.AuditLogConfig> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkAuditLogConfig(o[0]); |
- checkAuditLogConfig(o[1]); |
-} |
- |
-buildUnnamed2106() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed2106(core.List<core.String> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
-} |
- |
-core.int buildCounterAuditConfig = 0; |
-buildAuditConfig() { |
- var o = new api.AuditConfig(); |
- buildCounterAuditConfig++; |
- if (buildCounterAuditConfig < 3) { |
- o.auditLogConfigs = buildUnnamed2105(); |
- o.exemptedMembers = buildUnnamed2106(); |
- o.service = "foo"; |
- } |
- buildCounterAuditConfig--; |
- return o; |
-} |
- |
-checkAuditConfig(api.AuditConfig o) { |
- buildCounterAuditConfig++; |
- if (buildCounterAuditConfig < 3) { |
- checkUnnamed2105(o.auditLogConfigs); |
- checkUnnamed2106(o.exemptedMembers); |
- unittest.expect(o.service, unittest.equals('foo')); |
- } |
- buildCounterAuditConfig--; |
-} |
- |
-buildUnnamed2107() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed2107(core.List<core.String> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
-} |
- |
-core.int buildCounterAuditLogConfig = 0; |
-buildAuditLogConfig() { |
- var o = new api.AuditLogConfig(); |
- buildCounterAuditLogConfig++; |
- if (buildCounterAuditLogConfig < 3) { |
- o.exemptedMembers = buildUnnamed2107(); |
- o.logType = "foo"; |
- } |
- buildCounterAuditLogConfig--; |
- return o; |
-} |
- |
-checkAuditLogConfig(api.AuditLogConfig o) { |
- buildCounterAuditLogConfig++; |
- if (buildCounterAuditLogConfig < 3) { |
- checkUnnamed2107(o.exemptedMembers); |
- unittest.expect(o.logType, unittest.equals('foo')); |
- } |
- buildCounterAuditLogConfig--; |
-} |
- |
-core.int buildCounterAuthorizationLoggingOptions = 0; |
-buildAuthorizationLoggingOptions() { |
- var o = new api.AuthorizationLoggingOptions(); |
- buildCounterAuthorizationLoggingOptions++; |
- if (buildCounterAuthorizationLoggingOptions < 3) { |
- o.permissionType = "foo"; |
- } |
- buildCounterAuthorizationLoggingOptions--; |
- return o; |
-} |
- |
-checkAuthorizationLoggingOptions(api.AuthorizationLoggingOptions o) { |
- buildCounterAuthorizationLoggingOptions++; |
- if (buildCounterAuthorizationLoggingOptions < 3) { |
- unittest.expect(o.permissionType, unittest.equals('foo')); |
- } |
- buildCounterAuthorizationLoggingOptions--; |
-} |
- |
core.int buildCounterBeginTransactionRequest = 0; |
buildBeginTransactionRequest() { |
var o = new api.BeginTransactionRequest(); |
@@ -172,14 +69,14 @@ checkBeginTransactionRequest(api.BeginTransactionRequest o) { |
buildCounterBeginTransactionRequest--; |
} |
-buildUnnamed2108() { |
+buildUnnamed2103() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2108(core.List<core.String> o) { |
+checkUnnamed2103(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -190,8 +87,7 @@ buildBinding() { |
var o = new api.Binding(); |
buildCounterBinding++; |
if (buildCounterBinding < 3) { |
- o.condition = buildExpr(); |
- o.members = buildUnnamed2108(); |
+ o.members = buildUnnamed2103(); |
o.role = "foo"; |
} |
buildCounterBinding--; |
@@ -201,8 +97,7 @@ buildBinding() { |
checkBinding(api.Binding o) { |
buildCounterBinding++; |
if (buildCounterBinding < 3) { |
- checkExpr(o.condition); |
- checkUnnamed2108(o.members); |
+ checkUnnamed2103(o.members); |
unittest.expect(o.role, unittest.equals('foo')); |
} |
buildCounterBinding--; |
@@ -231,35 +126,14 @@ checkChildLink(api.ChildLink o) { |
buildCounterChildLink--; |
} |
-core.int buildCounterCloudAuditOptions = 0; |
-buildCloudAuditOptions() { |
- var o = new api.CloudAuditOptions(); |
- buildCounterCloudAuditOptions++; |
- if (buildCounterCloudAuditOptions < 3) { |
- o.authorizationLoggingOptions = buildAuthorizationLoggingOptions(); |
- o.logName = "foo"; |
- } |
- buildCounterCloudAuditOptions--; |
- return o; |
-} |
- |
-checkCloudAuditOptions(api.CloudAuditOptions o) { |
- buildCounterCloudAuditOptions++; |
- if (buildCounterCloudAuditOptions < 3) { |
- checkAuthorizationLoggingOptions(o.authorizationLoggingOptions); |
- unittest.expect(o.logName, unittest.equals('foo')); |
- } |
- buildCounterCloudAuditOptions--; |
-} |
- |
-buildUnnamed2109() { |
+buildUnnamed2104() { |
var o = new core.List<api.Mutation>(); |
o.add(buildMutation()); |
o.add(buildMutation()); |
return o; |
} |
-checkUnnamed2109(core.List<api.Mutation> o) { |
+checkUnnamed2104(core.List<api.Mutation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkMutation(o[0]); |
checkMutation(o[1]); |
@@ -270,7 +144,7 @@ buildCommitRequest() { |
var o = new api.CommitRequest(); |
buildCounterCommitRequest++; |
if (buildCounterCommitRequest < 3) { |
- o.mutations = buildUnnamed2109(); |
+ o.mutations = buildUnnamed2104(); |
o.singleUseTransaction = buildTransactionOptions(); |
o.transactionId = "foo"; |
} |
@@ -281,7 +155,7 @@ buildCommitRequest() { |
checkCommitRequest(api.CommitRequest o) { |
buildCounterCommitRequest++; |
if (buildCounterCommitRequest < 3) { |
- checkUnnamed2109(o.mutations); |
+ checkUnnamed2104(o.mutations); |
checkTransactionOptions(o.singleUseTransaction); |
unittest.expect(o.transactionId, unittest.equals('foo')); |
} |
@@ -307,69 +181,6 @@ checkCommitResponse(api.CommitResponse o) { |
buildCounterCommitResponse--; |
} |
-buildUnnamed2110() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed2110(core.List<core.String> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
-} |
- |
-core.int buildCounterCondition = 0; |
-buildCondition() { |
- var o = new api.Condition(); |
- buildCounterCondition++; |
- if (buildCounterCondition < 3) { |
- o.iam = "foo"; |
- o.op = "foo"; |
- o.svc = "foo"; |
- o.sys = "foo"; |
- o.value = "foo"; |
- o.values = buildUnnamed2110(); |
- } |
- buildCounterCondition--; |
- return o; |
-} |
- |
-checkCondition(api.Condition o) { |
- buildCounterCondition++; |
- if (buildCounterCondition < 3) { |
- unittest.expect(o.iam, unittest.equals('foo')); |
- unittest.expect(o.op, unittest.equals('foo')); |
- unittest.expect(o.svc, unittest.equals('foo')); |
- unittest.expect(o.sys, unittest.equals('foo')); |
- unittest.expect(o.value, unittest.equals('foo')); |
- checkUnnamed2110(o.values); |
- } |
- buildCounterCondition--; |
-} |
- |
-core.int buildCounterCounterOptions = 0; |
-buildCounterOptions() { |
- var o = new api.CounterOptions(); |
- buildCounterCounterOptions++; |
- if (buildCounterCounterOptions < 3) { |
- o.field = "foo"; |
- o.metric = "foo"; |
- } |
- buildCounterCounterOptions--; |
- return o; |
-} |
- |
-checkCounterOptions(api.CounterOptions o) { |
- buildCounterCounterOptions++; |
- if (buildCounterCounterOptions < 3) { |
- unittest.expect(o.field, unittest.equals('foo')); |
- unittest.expect(o.metric, unittest.equals('foo')); |
- } |
- buildCounterCounterOptions--; |
-} |
- |
core.int buildCounterCreateDatabaseMetadata = 0; |
buildCreateDatabaseMetadata() { |
var o = new api.CreateDatabaseMetadata(); |
@@ -389,14 +200,14 @@ checkCreateDatabaseMetadata(api.CreateDatabaseMetadata o) { |
buildCounterCreateDatabaseMetadata--; |
} |
-buildUnnamed2111() { |
+buildUnnamed2105() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2111(core.List<core.String> o) { |
+checkUnnamed2105(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -408,7 +219,7 @@ buildCreateDatabaseRequest() { |
buildCounterCreateDatabaseRequest++; |
if (buildCounterCreateDatabaseRequest < 3) { |
o.createStatement = "foo"; |
- o.extraStatements = buildUnnamed2111(); |
+ o.extraStatements = buildUnnamed2105(); |
} |
buildCounterCreateDatabaseRequest--; |
return o; |
@@ -418,7 +229,7 @@ checkCreateDatabaseRequest(api.CreateDatabaseRequest o) { |
buildCounterCreateDatabaseRequest++; |
if (buildCounterCreateDatabaseRequest < 3) { |
unittest.expect(o.createStatement, unittest.equals('foo')); |
- checkUnnamed2111(o.extraStatements); |
+ checkUnnamed2105(o.extraStatements); |
} |
buildCounterCreateDatabaseRequest--; |
} |
@@ -469,23 +280,6 @@ checkCreateInstanceRequest(api.CreateInstanceRequest o) { |
buildCounterCreateInstanceRequest--; |
} |
-core.int buildCounterDataAccessOptions = 0; |
-buildDataAccessOptions() { |
- var o = new api.DataAccessOptions(); |
- buildCounterDataAccessOptions++; |
- if (buildCounterDataAccessOptions < 3) { |
- } |
- buildCounterDataAccessOptions--; |
- return o; |
-} |
- |
-checkDataAccessOptions(api.DataAccessOptions o) { |
- buildCounterDataAccessOptions++; |
- if (buildCounterDataAccessOptions < 3) { |
- } |
- buildCounterDataAccessOptions--; |
-} |
- |
core.int buildCounterDatabase = 0; |
buildDatabase() { |
var o = new api.Database(); |
@@ -532,43 +326,57 @@ core.int buildCounterEmpty = 0; |
buildEmpty() { |
var o = new api.Empty(); |
buildCounterEmpty++; |
- if (buildCounterEmpty < 3) { |
- } |
+ if (buildCounterEmpty < 3) {} |
buildCounterEmpty--; |
return o; |
} |
checkEmpty(api.Empty o) { |
buildCounterEmpty++; |
- if (buildCounterEmpty < 3) { |
- } |
+ if (buildCounterEmpty < 3) {} |
buildCounterEmpty--; |
} |
-buildUnnamed2112() { |
+buildUnnamed2106() { |
var o = new core.Map<core.String, api.Type>(); |
o["x"] = buildType(); |
o["y"] = buildType(); |
return o; |
} |
-checkUnnamed2112(core.Map<core.String, api.Type> o) { |
+checkUnnamed2106(core.Map<core.String, api.Type> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkType(o["x"]); |
checkType(o["y"]); |
} |
-buildUnnamed2113() { |
+buildUnnamed2107() { |
var o = new core.Map<core.String, core.Object>(); |
- o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
- o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed2113(core.Map<core.String, core.Object> o) { |
+checkUnnamed2107(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); |
- var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); |
+ var casted1 = (o["x"]) as core.Map; |
+ unittest.expect(casted1, unittest.hasLength(3)); |
+ unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted1["bool"], unittest.equals(true)); |
+ unittest.expect(casted1["string"], unittest.equals('foo')); |
+ var casted2 = (o["y"]) as core.Map; |
+ unittest.expect(casted2, unittest.hasLength(3)); |
+ unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted2["bool"], unittest.equals(true)); |
+ unittest.expect(casted2["string"], unittest.equals('foo')); |
} |
core.int buildCounterExecuteSqlRequest = 0; |
@@ -576,8 +384,8 @@ buildExecuteSqlRequest() { |
var o = new api.ExecuteSqlRequest(); |
buildCounterExecuteSqlRequest++; |
if (buildCounterExecuteSqlRequest < 3) { |
- o.paramTypes = buildUnnamed2112(); |
- o.params = buildUnnamed2113(); |
+ o.paramTypes = buildUnnamed2106(); |
+ o.params = buildUnnamed2107(); |
o.queryMode = "foo"; |
o.resumeToken = "foo"; |
o.sql = "foo"; |
@@ -590,8 +398,8 @@ buildExecuteSqlRequest() { |
checkExecuteSqlRequest(api.ExecuteSqlRequest o) { |
buildCounterExecuteSqlRequest++; |
if (buildCounterExecuteSqlRequest < 3) { |
- checkUnnamed2112(o.paramTypes); |
- checkUnnamed2113(o.params); |
+ checkUnnamed2106(o.paramTypes); |
+ checkUnnamed2107(o.params); |
unittest.expect(o.queryMode, unittest.equals('foo')); |
unittest.expect(o.resumeToken, unittest.equals('foo')); |
unittest.expect(o.sql, unittest.equals('foo')); |
@@ -600,31 +408,6 @@ checkExecuteSqlRequest(api.ExecuteSqlRequest o) { |
buildCounterExecuteSqlRequest--; |
} |
-core.int buildCounterExpr = 0; |
-buildExpr() { |
- var o = new api.Expr(); |
- buildCounterExpr++; |
- if (buildCounterExpr < 3) { |
- o.description = "foo"; |
- o.expression = "foo"; |
- o.location = "foo"; |
- o.title = "foo"; |
- } |
- buildCounterExpr--; |
- return o; |
-} |
- |
-checkExpr(api.Expr o) { |
- buildCounterExpr++; |
- if (buildCounterExpr < 3) { |
- unittest.expect(o.description, unittest.equals('foo')); |
- unittest.expect(o.expression, unittest.equals('foo')); |
- unittest.expect(o.location, unittest.equals('foo')); |
- unittest.expect(o.title, unittest.equals('foo')); |
- } |
- buildCounterExpr--; |
-} |
- |
core.int buildCounterField = 0; |
buildField() { |
var o = new api.Field(); |
@@ -646,14 +429,14 @@ checkField(api.Field o) { |
buildCounterField--; |
} |
-buildUnnamed2114() { |
+buildUnnamed2108() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2114(core.List<core.String> o) { |
+checkUnnamed2108(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -664,7 +447,7 @@ buildGetDatabaseDdlResponse() { |
var o = new api.GetDatabaseDdlResponse(); |
buildCounterGetDatabaseDdlResponse++; |
if (buildCounterGetDatabaseDdlResponse < 3) { |
- o.statements = buildUnnamed2114(); |
+ o.statements = buildUnnamed2108(); |
} |
buildCounterGetDatabaseDdlResponse--; |
return o; |
@@ -673,7 +456,7 @@ buildGetDatabaseDdlResponse() { |
checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) { |
buildCounterGetDatabaseDdlResponse++; |
if (buildCounterGetDatabaseDdlResponse < 3) { |
- checkUnnamed2114(o.statements); |
+ checkUnnamed2108(o.statements); |
} |
buildCounterGetDatabaseDdlResponse--; |
} |
@@ -682,27 +465,25 @@ core.int buildCounterGetIamPolicyRequest = 0; |
buildGetIamPolicyRequest() { |
var o = new api.GetIamPolicyRequest(); |
buildCounterGetIamPolicyRequest++; |
- if (buildCounterGetIamPolicyRequest < 3) { |
- } |
+ if (buildCounterGetIamPolicyRequest < 3) {} |
buildCounterGetIamPolicyRequest--; |
return o; |
} |
checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
buildCounterGetIamPolicyRequest++; |
- if (buildCounterGetIamPolicyRequest < 3) { |
- } |
+ if (buildCounterGetIamPolicyRequest < 3) {} |
buildCounterGetIamPolicyRequest--; |
} |
-buildUnnamed2115() { |
+buildUnnamed2109() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed2115(core.Map<core.String, core.String> o) { |
+checkUnnamed2109(core.Map<core.String, core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o["x"], unittest.equals('foo')); |
unittest.expect(o["y"], unittest.equals('foo')); |
@@ -715,7 +496,7 @@ buildInstance() { |
if (buildCounterInstance < 3) { |
o.config = "foo"; |
o.displayName = "foo"; |
- o.labels = buildUnnamed2115(); |
+ o.labels = buildUnnamed2109(); |
o.name = "foo"; |
o.nodeCount = 42; |
o.state = "foo"; |
@@ -729,7 +510,7 @@ checkInstance(api.Instance o) { |
if (buildCounterInstance < 3) { |
unittest.expect(o.config, unittest.equals('foo')); |
unittest.expect(o.displayName, unittest.equals('foo')); |
- checkUnnamed2115(o.labels); |
+ checkUnnamed2109(o.labels); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.nodeCount, unittest.equals(42)); |
unittest.expect(o.state, unittest.equals('foo')); |
@@ -758,56 +539,120 @@ checkInstanceConfig(api.InstanceConfig o) { |
buildCounterInstanceConfig--; |
} |
-buildUnnamed2116() { |
+buildUnnamed2110() { |
var o = new core.List<core.Object>(); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
return o; |
} |
-checkUnnamed2116(core.List<core.Object> o) { |
+checkUnnamed2110(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); |
- var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); |
+ var casted3 = (o[0]) as core.Map; |
+ unittest.expect(casted3, unittest.hasLength(3)); |
+ unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted3["bool"], unittest.equals(true)); |
+ unittest.expect(casted3["string"], unittest.equals('foo')); |
+ var casted4 = (o[1]) as core.Map; |
+ unittest.expect(casted4, unittest.hasLength(3)); |
+ unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted4["bool"], unittest.equals(true)); |
+ unittest.expect(casted4["string"], unittest.equals('foo')); |
} |
-buildUnnamed2117() { |
+buildUnnamed2111() { |
var o = new core.List<core.Object>(); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
return o; |
} |
-checkUnnamed2117(core.List<core.Object> o) { |
+checkUnnamed2111(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); |
- var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); |
+ var casted5 = (o[0]) as core.Map; |
+ unittest.expect(casted5, unittest.hasLength(3)); |
+ unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted5["bool"], unittest.equals(true)); |
+ unittest.expect(casted5["string"], unittest.equals('foo')); |
+ var casted6 = (o[1]) as core.Map; |
+ unittest.expect(casted6, unittest.hasLength(3)); |
+ unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted6["bool"], unittest.equals(true)); |
+ unittest.expect(casted6["string"], unittest.equals('foo')); |
} |
-buildUnnamed2118() { |
+buildUnnamed2112() { |
var o = new core.List<core.Object>(); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
return o; |
} |
-checkUnnamed2118(core.List<core.Object> o) { |
+checkUnnamed2112(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); |
- var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); |
+ var casted7 = (o[0]) as core.Map; |
+ unittest.expect(casted7, unittest.hasLength(3)); |
+ unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted7["bool"], unittest.equals(true)); |
+ unittest.expect(casted7["string"], unittest.equals('foo')); |
+ var casted8 = (o[1]) as core.Map; |
+ unittest.expect(casted8, unittest.hasLength(3)); |
+ unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted8["bool"], unittest.equals(true)); |
+ unittest.expect(casted8["string"], unittest.equals('foo')); |
} |
-buildUnnamed2119() { |
+buildUnnamed2113() { |
var o = new core.List<core.Object>(); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
return o; |
} |
-checkUnnamed2119(core.List<core.Object> o) { |
+checkUnnamed2113(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); |
- var casted10 = (o[1]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); |
+ var casted9 = (o[0]) as core.Map; |
+ unittest.expect(casted9, unittest.hasLength(3)); |
+ unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted9["bool"], unittest.equals(true)); |
+ unittest.expect(casted9["string"], unittest.equals('foo')); |
+ var casted10 = (o[1]) as core.Map; |
+ unittest.expect(casted10, unittest.hasLength(3)); |
+ unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted10["bool"], unittest.equals(true)); |
+ unittest.expect(casted10["string"], unittest.equals('foo')); |
} |
core.int buildCounterKeyRange = 0; |
@@ -815,10 +660,10 @@ buildKeyRange() { |
var o = new api.KeyRange(); |
buildCounterKeyRange++; |
if (buildCounterKeyRange < 3) { |
- o.endClosed = buildUnnamed2116(); |
- o.endOpen = buildUnnamed2117(); |
- o.startClosed = buildUnnamed2118(); |
- o.startOpen = buildUnnamed2119(); |
+ o.endClosed = buildUnnamed2110(); |
+ o.endOpen = buildUnnamed2111(); |
+ o.startClosed = buildUnnamed2112(); |
+ o.startOpen = buildUnnamed2113(); |
} |
buildCounterKeyRange--; |
return o; |
@@ -827,48 +672,64 @@ buildKeyRange() { |
checkKeyRange(api.KeyRange o) { |
buildCounterKeyRange++; |
if (buildCounterKeyRange < 3) { |
- checkUnnamed2116(o.endClosed); |
- checkUnnamed2117(o.endOpen); |
- checkUnnamed2118(o.startClosed); |
- checkUnnamed2119(o.startOpen); |
+ checkUnnamed2110(o.endClosed); |
+ checkUnnamed2111(o.endOpen); |
+ checkUnnamed2112(o.startClosed); |
+ checkUnnamed2113(o.startOpen); |
} |
buildCounterKeyRange--; |
} |
-buildUnnamed2120() { |
+buildUnnamed2114() { |
var o = new core.List<core.Object>(); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
return o; |
} |
-checkUnnamed2120(core.List<core.Object> o) { |
+checkUnnamed2114(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted11 = (o[0]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); |
- var casted12 = (o[1]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); |
+ var casted11 = (o[0]) as core.Map; |
+ unittest.expect(casted11, unittest.hasLength(3)); |
+ unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted11["bool"], unittest.equals(true)); |
+ unittest.expect(casted11["string"], unittest.equals('foo')); |
+ var casted12 = (o[1]) as core.Map; |
+ unittest.expect(casted12, unittest.hasLength(3)); |
+ unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted12["bool"], unittest.equals(true)); |
+ unittest.expect(casted12["string"], unittest.equals('foo')); |
} |
-buildUnnamed2121() { |
+buildUnnamed2115() { |
var o = new core.List<core.List<core.Object>>(); |
- o.add(buildUnnamed2120()); |
- o.add(buildUnnamed2120()); |
+ o.add(buildUnnamed2114()); |
+ o.add(buildUnnamed2114()); |
return o; |
} |
-checkUnnamed2121(core.List<core.List<core.Object>> o) { |
+checkUnnamed2115(core.List<core.List<core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed2120(o[0]); |
- checkUnnamed2120(o[1]); |
+ checkUnnamed2114(o[0]); |
+ checkUnnamed2114(o[1]); |
} |
-buildUnnamed2122() { |
+buildUnnamed2116() { |
var o = new core.List<api.KeyRange>(); |
o.add(buildKeyRange()); |
o.add(buildKeyRange()); |
return o; |
} |
-checkUnnamed2122(core.List<api.KeyRange> o) { |
+checkUnnamed2116(core.List<api.KeyRange> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkKeyRange(o[0]); |
checkKeyRange(o[1]); |
@@ -880,8 +741,8 @@ buildKeySet() { |
buildCounterKeySet++; |
if (buildCounterKeySet < 3) { |
o.all = true; |
- o.keys = buildUnnamed2121(); |
- o.ranges = buildUnnamed2122(); |
+ o.keys = buildUnnamed2115(); |
+ o.ranges = buildUnnamed2116(); |
} |
buildCounterKeySet--; |
return o; |
@@ -891,20 +752,20 @@ checkKeySet(api.KeySet o) { |
buildCounterKeySet++; |
if (buildCounterKeySet < 3) { |
unittest.expect(o.all, unittest.isTrue); |
- checkUnnamed2121(o.keys); |
- checkUnnamed2122(o.ranges); |
+ checkUnnamed2115(o.keys); |
+ checkUnnamed2116(o.ranges); |
} |
buildCounterKeySet--; |
} |
-buildUnnamed2123() { |
+buildUnnamed2117() { |
var o = new core.List<api.Database>(); |
o.add(buildDatabase()); |
o.add(buildDatabase()); |
return o; |
} |
-checkUnnamed2123(core.List<api.Database> o) { |
+checkUnnamed2117(core.List<api.Database> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkDatabase(o[0]); |
checkDatabase(o[1]); |
@@ -915,7 +776,7 @@ buildListDatabasesResponse() { |
var o = new api.ListDatabasesResponse(); |
buildCounterListDatabasesResponse++; |
if (buildCounterListDatabasesResponse < 3) { |
- o.databases = buildUnnamed2123(); |
+ o.databases = buildUnnamed2117(); |
o.nextPageToken = "foo"; |
} |
buildCounterListDatabasesResponse--; |
@@ -925,20 +786,20 @@ buildListDatabasesResponse() { |
checkListDatabasesResponse(api.ListDatabasesResponse o) { |
buildCounterListDatabasesResponse++; |
if (buildCounterListDatabasesResponse < 3) { |
- checkUnnamed2123(o.databases); |
+ checkUnnamed2117(o.databases); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListDatabasesResponse--; |
} |
-buildUnnamed2124() { |
+buildUnnamed2118() { |
var o = new core.List<api.InstanceConfig>(); |
o.add(buildInstanceConfig()); |
o.add(buildInstanceConfig()); |
return o; |
} |
-checkUnnamed2124(core.List<api.InstanceConfig> o) { |
+checkUnnamed2118(core.List<api.InstanceConfig> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkInstanceConfig(o[0]); |
checkInstanceConfig(o[1]); |
@@ -949,7 +810,7 @@ buildListInstanceConfigsResponse() { |
var o = new api.ListInstanceConfigsResponse(); |
buildCounterListInstanceConfigsResponse++; |
if (buildCounterListInstanceConfigsResponse < 3) { |
- o.instanceConfigs = buildUnnamed2124(); |
+ o.instanceConfigs = buildUnnamed2118(); |
o.nextPageToken = "foo"; |
} |
buildCounterListInstanceConfigsResponse--; |
@@ -959,20 +820,20 @@ buildListInstanceConfigsResponse() { |
checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) { |
buildCounterListInstanceConfigsResponse++; |
if (buildCounterListInstanceConfigsResponse < 3) { |
- checkUnnamed2124(o.instanceConfigs); |
+ checkUnnamed2118(o.instanceConfigs); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListInstanceConfigsResponse--; |
} |
-buildUnnamed2125() { |
+buildUnnamed2119() { |
var o = new core.List<api.Instance>(); |
o.add(buildInstance()); |
o.add(buildInstance()); |
return o; |
} |
-checkUnnamed2125(core.List<api.Instance> o) { |
+checkUnnamed2119(core.List<api.Instance> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkInstance(o[0]); |
checkInstance(o[1]); |
@@ -983,7 +844,7 @@ buildListInstancesResponse() { |
var o = new api.ListInstancesResponse(); |
buildCounterListInstancesResponse++; |
if (buildCounterListInstancesResponse < 3) { |
- o.instances = buildUnnamed2125(); |
+ o.instances = buildUnnamed2119(); |
o.nextPageToken = "foo"; |
} |
buildCounterListInstancesResponse--; |
@@ -993,20 +854,20 @@ buildListInstancesResponse() { |
checkListInstancesResponse(api.ListInstancesResponse o) { |
buildCounterListInstancesResponse++; |
if (buildCounterListInstancesResponse < 3) { |
- checkUnnamed2125(o.instances); |
+ checkUnnamed2119(o.instances); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
buildCounterListInstancesResponse--; |
} |
-buildUnnamed2126() { |
+buildUnnamed2120() { |
var o = new core.List<api.Operation>(); |
o.add(buildOperation()); |
o.add(buildOperation()); |
return o; |
} |
-checkUnnamed2126(core.List<api.Operation> o) { |
+checkUnnamed2120(core.List<api.Operation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOperation(o[0]); |
checkOperation(o[1]); |
@@ -1018,7 +879,7 @@ buildListOperationsResponse() { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.operations = buildUnnamed2126(); |
+ o.operations = buildUnnamed2120(); |
} |
buildCounterListOperationsResponse--; |
return o; |
@@ -1028,34 +889,11 @@ checkListOperationsResponse(api.ListOperationsResponse o) { |
buildCounterListOperationsResponse++; |
if (buildCounterListOperationsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed2126(o.operations); |
+ checkUnnamed2120(o.operations); |
} |
buildCounterListOperationsResponse--; |
} |
-core.int buildCounterLogConfig = 0; |
-buildLogConfig() { |
- var o = new api.LogConfig(); |
- buildCounterLogConfig++; |
- if (buildCounterLogConfig < 3) { |
- o.cloudAudit = buildCloudAuditOptions(); |
- o.counter = buildCounterOptions(); |
- o.dataAccess = buildDataAccessOptions(); |
- } |
- buildCounterLogConfig--; |
- return o; |
-} |
- |
-checkLogConfig(api.LogConfig o) { |
- buildCounterLogConfig++; |
- if (buildCounterLogConfig < 3) { |
- checkCloudAuditOptions(o.cloudAudit); |
- checkCounterOptions(o.counter); |
- checkDataAccessOptions(o.dataAccess); |
- } |
- buildCounterLogConfig--; |
-} |
- |
core.int buildCounterMutation = 0; |
buildMutation() { |
var o = new api.Mutation(); |
@@ -1083,30 +921,62 @@ checkMutation(api.Mutation o) { |
buildCounterMutation--; |
} |
-buildUnnamed2127() { |
+buildUnnamed2121() { |
var o = new core.Map<core.String, core.Object>(); |
- o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
- o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed2127(core.Map<core.String, core.Object> o) { |
+checkUnnamed2121(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); |
- var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); |
+ var casted13 = (o["x"]) as core.Map; |
+ unittest.expect(casted13, unittest.hasLength(3)); |
+ unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted13["bool"], unittest.equals(true)); |
+ unittest.expect(casted13["string"], unittest.equals('foo')); |
+ var casted14 = (o["y"]) as core.Map; |
+ unittest.expect(casted14, unittest.hasLength(3)); |
+ unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted14["bool"], unittest.equals(true)); |
+ unittest.expect(casted14["string"], unittest.equals('foo')); |
} |
-buildUnnamed2128() { |
+buildUnnamed2122() { |
var o = new core.Map<core.String, core.Object>(); |
- o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
- o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed2128(core.Map<core.String, core.Object> o) { |
+checkUnnamed2122(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest.expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["string"], unittest.equals('foo')); |
- var casted16 = (o["y"]) as core.Map; unittest.expect(casted16, unittest.hasLength(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest.expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["string"], unittest.equals('foo')); |
+ var casted15 = (o["x"]) as core.Map; |
+ unittest.expect(casted15, unittest.hasLength(3)); |
+ unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted15["bool"], unittest.equals(true)); |
+ unittest.expect(casted15["string"], unittest.equals('foo')); |
+ var casted16 = (o["y"]) as core.Map; |
+ unittest.expect(casted16, unittest.hasLength(3)); |
+ unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted16["bool"], unittest.equals(true)); |
+ unittest.expect(casted16["string"], unittest.equals('foo')); |
} |
core.int buildCounterOperation = 0; |
@@ -1116,9 +986,9 @@ buildOperation() { |
if (buildCounterOperation < 3) { |
o.done = true; |
o.error = buildStatus(); |
- o.metadata = buildUnnamed2127(); |
+ o.metadata = buildUnnamed2121(); |
o.name = "foo"; |
- o.response = buildUnnamed2128(); |
+ o.response = buildUnnamed2122(); |
} |
buildCounterOperation--; |
return o; |
@@ -1129,24 +999,40 @@ checkOperation(api.Operation o) { |
if (buildCounterOperation < 3) { |
unittest.expect(o.done, unittest.isTrue); |
checkStatus(o.error); |
- checkUnnamed2127(o.metadata); |
+ checkUnnamed2121(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed2128(o.response); |
+ checkUnnamed2122(o.response); |
} |
buildCounterOperation--; |
} |
-buildUnnamed2129() { |
+buildUnnamed2123() { |
var o = new core.List<core.Object>(); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
return o; |
} |
-checkUnnamed2129(core.List<core.Object> o) { |
+checkUnnamed2123(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string"], unittest.equals('foo')); |
- var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLength(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string"], unittest.equals('foo')); |
+ var casted17 = (o[0]) as core.Map; |
+ unittest.expect(casted17, unittest.hasLength(3)); |
+ unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted17["bool"], unittest.equals(true)); |
+ unittest.expect(casted17["string"], unittest.equals('foo')); |
+ var casted18 = (o[1]) as core.Map; |
+ unittest.expect(casted18, unittest.hasLength(3)); |
+ unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted18["bool"], unittest.equals(true)); |
+ unittest.expect(casted18["string"], unittest.equals('foo')); |
} |
core.int buildCounterPartialResultSet = 0; |
@@ -1158,7 +1044,7 @@ buildPartialResultSet() { |
o.metadata = buildResultSetMetadata(); |
o.resumeToken = "foo"; |
o.stats = buildResultSetStats(); |
- o.values = buildUnnamed2129(); |
+ o.values = buildUnnamed2123(); |
} |
buildCounterPartialResultSet--; |
return o; |
@@ -1171,48 +1057,80 @@ checkPartialResultSet(api.PartialResultSet o) { |
checkResultSetMetadata(o.metadata); |
unittest.expect(o.resumeToken, unittest.equals('foo')); |
checkResultSetStats(o.stats); |
- checkUnnamed2129(o.values); |
+ checkUnnamed2123(o.values); |
} |
buildCounterPartialResultSet--; |
} |
-buildUnnamed2130() { |
+buildUnnamed2124() { |
var o = new core.List<api.ChildLink>(); |
o.add(buildChildLink()); |
o.add(buildChildLink()); |
return o; |
} |
-checkUnnamed2130(core.List<api.ChildLink> o) { |
+checkUnnamed2124(core.List<api.ChildLink> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkChildLink(o[0]); |
checkChildLink(o[1]); |
} |
-buildUnnamed2131() { |
+buildUnnamed2125() { |
var o = new core.Map<core.String, core.Object>(); |
- o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
- o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed2131(core.Map<core.String, core.Object> o) { |
+checkUnnamed2125(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["string"], unittest.equals('foo')); |
- var casted20 = (o["y"]) as core.Map; unittest.expect(casted20, unittest.hasLength(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["string"], unittest.equals('foo')); |
+ var casted19 = (o["x"]) as core.Map; |
+ unittest.expect(casted19, unittest.hasLength(3)); |
+ unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted19["bool"], unittest.equals(true)); |
+ unittest.expect(casted19["string"], unittest.equals('foo')); |
+ var casted20 = (o["y"]) as core.Map; |
+ unittest.expect(casted20, unittest.hasLength(3)); |
+ unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted20["bool"], unittest.equals(true)); |
+ unittest.expect(casted20["string"], unittest.equals('foo')); |
} |
-buildUnnamed2132() { |
+buildUnnamed2126() { |
var o = new core.Map<core.String, core.Object>(); |
- o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
- o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed2132(core.Map<core.String, core.Object> o) { |
+checkUnnamed2126(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["string"], unittest.equals('foo')); |
- var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLength(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["string"], unittest.equals('foo')); |
+ var casted21 = (o["x"]) as core.Map; |
+ unittest.expect(casted21, unittest.hasLength(3)); |
+ unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted21["bool"], unittest.equals(true)); |
+ unittest.expect(casted21["string"], unittest.equals('foo')); |
+ var casted22 = (o["y"]) as core.Map; |
+ unittest.expect(casted22, unittest.hasLength(3)); |
+ unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted22["bool"], unittest.equals(true)); |
+ unittest.expect(casted22["string"], unittest.equals('foo')); |
} |
core.int buildCounterPlanNode = 0; |
@@ -1220,12 +1138,12 @@ buildPlanNode() { |
var o = new api.PlanNode(); |
buildCounterPlanNode++; |
if (buildCounterPlanNode < 3) { |
- o.childLinks = buildUnnamed2130(); |
+ o.childLinks = buildUnnamed2124(); |
o.displayName = "foo"; |
- o.executionStats = buildUnnamed2131(); |
+ o.executionStats = buildUnnamed2125(); |
o.index = 42; |
o.kind = "foo"; |
- o.metadata = buildUnnamed2132(); |
+ o.metadata = buildUnnamed2126(); |
o.shortRepresentation = buildShortRepresentation(); |
} |
buildCounterPlanNode--; |
@@ -1235,66 +1153,37 @@ buildPlanNode() { |
checkPlanNode(api.PlanNode o) { |
buildCounterPlanNode++; |
if (buildCounterPlanNode < 3) { |
- checkUnnamed2130(o.childLinks); |
+ checkUnnamed2124(o.childLinks); |
unittest.expect(o.displayName, unittest.equals('foo')); |
- checkUnnamed2131(o.executionStats); |
+ checkUnnamed2125(o.executionStats); |
unittest.expect(o.index, unittest.equals(42)); |
unittest.expect(o.kind, unittest.equals('foo')); |
- checkUnnamed2132(o.metadata); |
+ checkUnnamed2126(o.metadata); |
checkShortRepresentation(o.shortRepresentation); |
} |
buildCounterPlanNode--; |
} |
-buildUnnamed2133() { |
- var o = new core.List<api.AuditConfig>(); |
- o.add(buildAuditConfig()); |
- o.add(buildAuditConfig()); |
- return o; |
-} |
- |
-checkUnnamed2133(core.List<api.AuditConfig> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkAuditConfig(o[0]); |
- checkAuditConfig(o[1]); |
-} |
- |
-buildUnnamed2134() { |
+buildUnnamed2127() { |
var o = new core.List<api.Binding>(); |
o.add(buildBinding()); |
o.add(buildBinding()); |
return o; |
} |
-checkUnnamed2134(core.List<api.Binding> o) { |
+checkUnnamed2127(core.List<api.Binding> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkBinding(o[0]); |
checkBinding(o[1]); |
} |
-buildUnnamed2135() { |
- var o = new core.List<api.Rule>(); |
- o.add(buildRule()); |
- o.add(buildRule()); |
- return o; |
-} |
- |
-checkUnnamed2135(core.List<api.Rule> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkRule(o[0]); |
- checkRule(o[1]); |
-} |
- |
core.int buildCounterPolicy = 0; |
buildPolicy() { |
var o = new api.Policy(); |
buildCounterPolicy++; |
if (buildCounterPolicy < 3) { |
- o.auditConfigs = buildUnnamed2133(); |
- o.bindings = buildUnnamed2134(); |
+ o.bindings = buildUnnamed2127(); |
o.etag = "foo"; |
- o.iamOwned = true; |
- o.rules = buildUnnamed2135(); |
o.version = 42; |
} |
buildCounterPolicy--; |
@@ -1304,24 +1193,21 @@ buildPolicy() { |
checkPolicy(api.Policy o) { |
buildCounterPolicy++; |
if (buildCounterPolicy < 3) { |
- checkUnnamed2133(o.auditConfigs); |
- checkUnnamed2134(o.bindings); |
+ checkUnnamed2127(o.bindings); |
unittest.expect(o.etag, unittest.equals('foo')); |
- unittest.expect(o.iamOwned, unittest.isTrue); |
- checkUnnamed2135(o.rules); |
unittest.expect(o.version, unittest.equals(42)); |
} |
buildCounterPolicy--; |
} |
-buildUnnamed2136() { |
+buildUnnamed2128() { |
var o = new core.List<api.PlanNode>(); |
o.add(buildPlanNode()); |
o.add(buildPlanNode()); |
return o; |
} |
-checkUnnamed2136(core.List<api.PlanNode> o) { |
+checkUnnamed2128(core.List<api.PlanNode> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkPlanNode(o[0]); |
checkPlanNode(o[1]); |
@@ -1332,7 +1218,7 @@ buildQueryPlan() { |
var o = new api.QueryPlan(); |
buildCounterQueryPlan++; |
if (buildCounterQueryPlan < 3) { |
- o.planNodes = buildUnnamed2136(); |
+ o.planNodes = buildUnnamed2128(); |
} |
buildCounterQueryPlan--; |
return o; |
@@ -1341,7 +1227,7 @@ buildQueryPlan() { |
checkQueryPlan(api.QueryPlan o) { |
buildCounterQueryPlan++; |
if (buildCounterQueryPlan < 3) { |
- checkUnnamed2136(o.planNodes); |
+ checkUnnamed2128(o.planNodes); |
} |
buildCounterQueryPlan--; |
} |
@@ -1375,14 +1261,14 @@ checkReadOnly(api.ReadOnly o) { |
buildCounterReadOnly--; |
} |
-buildUnnamed2137() { |
+buildUnnamed2129() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2137(core.List<core.String> o) { |
+checkUnnamed2129(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -1393,7 +1279,7 @@ buildReadRequest() { |
var o = new api.ReadRequest(); |
buildCounterReadRequest++; |
if (buildCounterReadRequest < 3) { |
- o.columns = buildUnnamed2137(); |
+ o.columns = buildUnnamed2129(); |
o.index = "foo"; |
o.keySet = buildKeySet(); |
o.limit = "foo"; |
@@ -1408,7 +1294,7 @@ buildReadRequest() { |
checkReadRequest(api.ReadRequest o) { |
buildCounterReadRequest++; |
if (buildCounterReadRequest < 3) { |
- checkUnnamed2137(o.columns); |
+ checkUnnamed2129(o.columns); |
unittest.expect(o.index, unittest.equals('foo')); |
checkKeySet(o.keySet); |
unittest.expect(o.limit, unittest.equals('foo')); |
@@ -1423,43 +1309,57 @@ core.int buildCounterReadWrite = 0; |
buildReadWrite() { |
var o = new api.ReadWrite(); |
buildCounterReadWrite++; |
- if (buildCounterReadWrite < 3) { |
- } |
+ if (buildCounterReadWrite < 3) {} |
buildCounterReadWrite--; |
return o; |
} |
checkReadWrite(api.ReadWrite o) { |
buildCounterReadWrite++; |
- if (buildCounterReadWrite < 3) { |
- } |
+ if (buildCounterReadWrite < 3) {} |
buildCounterReadWrite--; |
} |
-buildUnnamed2138() { |
+buildUnnamed2130() { |
var o = new core.List<core.Object>(); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
return o; |
} |
-checkUnnamed2138(core.List<core.Object> o) { |
+checkUnnamed2130(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string"], unittest.equals('foo')); |
- var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLength(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string"], unittest.equals('foo')); |
+ var casted23 = (o[0]) as core.Map; |
+ unittest.expect(casted23, unittest.hasLength(3)); |
+ unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted23["bool"], unittest.equals(true)); |
+ unittest.expect(casted23["string"], unittest.equals('foo')); |
+ var casted24 = (o[1]) as core.Map; |
+ unittest.expect(casted24, unittest.hasLength(3)); |
+ unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted24["bool"], unittest.equals(true)); |
+ unittest.expect(casted24["string"], unittest.equals('foo')); |
} |
-buildUnnamed2139() { |
+buildUnnamed2131() { |
var o = new core.List<core.List<core.Object>>(); |
- o.add(buildUnnamed2138()); |
- o.add(buildUnnamed2138()); |
+ o.add(buildUnnamed2130()); |
+ o.add(buildUnnamed2130()); |
return o; |
} |
-checkUnnamed2139(core.List<core.List<core.Object>> o) { |
+checkUnnamed2131(core.List<core.List<core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed2138(o[0]); |
- checkUnnamed2138(o[1]); |
+ checkUnnamed2130(o[0]); |
+ checkUnnamed2130(o[1]); |
} |
core.int buildCounterResultSet = 0; |
@@ -1468,7 +1368,7 @@ buildResultSet() { |
buildCounterResultSet++; |
if (buildCounterResultSet < 3) { |
o.metadata = buildResultSetMetadata(); |
- o.rows = buildUnnamed2139(); |
+ o.rows = buildUnnamed2131(); |
o.stats = buildResultSetStats(); |
} |
buildCounterResultSet--; |
@@ -1479,7 +1379,7 @@ checkResultSet(api.ResultSet o) { |
buildCounterResultSet++; |
if (buildCounterResultSet < 3) { |
checkResultSetMetadata(o.metadata); |
- checkUnnamed2139(o.rows); |
+ checkUnnamed2131(o.rows); |
checkResultSetStats(o.stats); |
} |
buildCounterResultSet--; |
@@ -1506,17 +1406,33 @@ checkResultSetMetadata(api.ResultSetMetadata o) { |
buildCounterResultSetMetadata--; |
} |
-buildUnnamed2140() { |
+buildUnnamed2132() { |
var o = new core.Map<core.String, core.Object>(); |
- o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
- o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed2140(core.Map<core.String, core.Object> o) { |
+checkUnnamed2132(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo')); |
- var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo')); |
+ var casted25 = (o["x"]) as core.Map; |
+ unittest.expect(casted25, unittest.hasLength(3)); |
+ unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted25["bool"], unittest.equals(true)); |
+ unittest.expect(casted25["string"], unittest.equals('foo')); |
+ var casted26 = (o["y"]) as core.Map; |
+ unittest.expect(casted26, unittest.hasLength(3)); |
+ unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted26["bool"], unittest.equals(true)); |
+ unittest.expect(casted26["string"], unittest.equals('foo')); |
} |
core.int buildCounterResultSetStats = 0; |
@@ -1525,7 +1441,7 @@ buildResultSetStats() { |
buildCounterResultSetStats++; |
if (buildCounterResultSetStats < 3) { |
o.queryPlan = buildQueryPlan(); |
- o.queryStats = buildUnnamed2140(); |
+ o.queryStats = buildUnnamed2132(); |
} |
buildCounterResultSetStats--; |
return o; |
@@ -1535,7 +1451,7 @@ checkResultSetStats(api.ResultSetStats o) { |
buildCounterResultSetStats++; |
if (buildCounterResultSetStats < 3) { |
checkQueryPlan(o.queryPlan); |
- checkUnnamed2140(o.queryStats); |
+ checkUnnamed2132(o.queryStats); |
} |
buildCounterResultSetStats--; |
} |
@@ -1559,102 +1475,6 @@ checkRollbackRequest(api.RollbackRequest o) { |
buildCounterRollbackRequest--; |
} |
-buildUnnamed2141() { |
- var o = new core.List<api.Condition>(); |
- o.add(buildCondition()); |
- o.add(buildCondition()); |
- return o; |
-} |
- |
-checkUnnamed2141(core.List<api.Condition> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkCondition(o[0]); |
- checkCondition(o[1]); |
-} |
- |
-buildUnnamed2142() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed2142(core.List<core.String> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
-} |
- |
-buildUnnamed2143() { |
- var o = new core.List<api.LogConfig>(); |
- o.add(buildLogConfig()); |
- o.add(buildLogConfig()); |
- return o; |
-} |
- |
-checkUnnamed2143(core.List<api.LogConfig> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkLogConfig(o[0]); |
- checkLogConfig(o[1]); |
-} |
- |
-buildUnnamed2144() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed2144(core.List<core.String> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
-} |
- |
-buildUnnamed2145() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed2145(core.List<core.String> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
-} |
- |
-core.int buildCounterRule = 0; |
-buildRule() { |
- var o = new api.Rule(); |
- buildCounterRule++; |
- if (buildCounterRule < 3) { |
- o.action = "foo"; |
- o.conditions = buildUnnamed2141(); |
- o.description = "foo"; |
- o.in_ = buildUnnamed2142(); |
- o.logConfig = buildUnnamed2143(); |
- o.notIn = buildUnnamed2144(); |
- o.permissions = buildUnnamed2145(); |
- } |
- buildCounterRule--; |
- return o; |
-} |
- |
-checkRule(api.Rule o) { |
- buildCounterRule++; |
- if (buildCounterRule < 3) { |
- unittest.expect(o.action, unittest.equals('foo')); |
- checkUnnamed2141(o.conditions); |
- unittest.expect(o.description, unittest.equals('foo')); |
- checkUnnamed2142(o.in_); |
- checkUnnamed2143(o.logConfig); |
- checkUnnamed2144(o.notIn); |
- checkUnnamed2145(o.permissions); |
- } |
- buildCounterRule--; |
-} |
- |
core.int buildCounterSession = 0; |
buildSession() { |
var o = new api.Session(); |
@@ -1680,7 +1500,6 @@ buildSetIamPolicyRequest() { |
buildCounterSetIamPolicyRequest++; |
if (buildCounterSetIamPolicyRequest < 3) { |
o.policy = buildPolicy(); |
- o.updateMask = "foo"; |
} |
buildCounterSetIamPolicyRequest--; |
return o; |
@@ -1690,19 +1509,18 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { |
buildCounterSetIamPolicyRequest++; |
if (buildCounterSetIamPolicyRequest < 3) { |
checkPolicy(o.policy); |
- unittest.expect(o.updateMask, unittest.equals('foo')); |
} |
buildCounterSetIamPolicyRequest--; |
} |
-buildUnnamed2146() { |
+buildUnnamed2133() { |
var o = new core.Map<core.String, core.int>(); |
o["x"] = 42; |
o["y"] = 42; |
return o; |
} |
-checkUnnamed2146(core.Map<core.String, core.int> o) { |
+checkUnnamed2133(core.Map<core.String, core.int> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o["x"], unittest.equals(42)); |
unittest.expect(o["y"], unittest.equals(42)); |
@@ -1714,7 +1532,7 @@ buildShortRepresentation() { |
buildCounterShortRepresentation++; |
if (buildCounterShortRepresentation < 3) { |
o.description = "foo"; |
- o.subqueries = buildUnnamed2146(); |
+ o.subqueries = buildUnnamed2133(); |
} |
buildCounterShortRepresentation--; |
return o; |
@@ -1724,35 +1542,51 @@ checkShortRepresentation(api.ShortRepresentation o) { |
buildCounterShortRepresentation++; |
if (buildCounterShortRepresentation < 3) { |
unittest.expect(o.description, unittest.equals('foo')); |
- checkUnnamed2146(o.subqueries); |
+ checkUnnamed2133(o.subqueries); |
} |
buildCounterShortRepresentation--; |
} |
-buildUnnamed2147() { |
+buildUnnamed2134() { |
var o = new core.Map<core.String, core.Object>(); |
- o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
- o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed2147(core.Map<core.String, core.Object> o) { |
+checkUnnamed2134(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo')); |
- var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo')); |
+ var casted27 = (o["x"]) as core.Map; |
+ unittest.expect(casted27, unittest.hasLength(3)); |
+ unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted27["bool"], unittest.equals(true)); |
+ unittest.expect(casted27["string"], unittest.equals('foo')); |
+ var casted28 = (o["y"]) as core.Map; |
+ unittest.expect(casted28, unittest.hasLength(3)); |
+ unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted28["bool"], unittest.equals(true)); |
+ unittest.expect(casted28["string"], unittest.equals('foo')); |
} |
-buildUnnamed2148() { |
+buildUnnamed2135() { |
var o = new core.List<core.Map<core.String, core.Object>>(); |
- o.add(buildUnnamed2147()); |
- o.add(buildUnnamed2147()); |
+ o.add(buildUnnamed2134()); |
+ o.add(buildUnnamed2134()); |
return o; |
} |
-checkUnnamed2148(core.List<core.Map<core.String, core.Object>> o) { |
+checkUnnamed2135(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed2147(o[0]); |
- checkUnnamed2147(o[1]); |
+ checkUnnamed2134(o[0]); |
+ checkUnnamed2134(o[1]); |
} |
core.int buildCounterStatus = 0; |
@@ -1761,7 +1595,7 @@ buildStatus() { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
o.code = 42; |
- o.details = buildUnnamed2148(); |
+ o.details = buildUnnamed2135(); |
o.message = "foo"; |
} |
buildCounterStatus--; |
@@ -1772,20 +1606,20 @@ checkStatus(api.Status o) { |
buildCounterStatus++; |
if (buildCounterStatus < 3) { |
unittest.expect(o.code, unittest.equals(42)); |
- checkUnnamed2148(o.details); |
+ checkUnnamed2135(o.details); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterStatus--; |
} |
-buildUnnamed2149() { |
+buildUnnamed2136() { |
var o = new core.List<api.Field>(); |
o.add(buildField()); |
o.add(buildField()); |
return o; |
} |
-checkUnnamed2149(core.List<api.Field> o) { |
+checkUnnamed2136(core.List<api.Field> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkField(o[0]); |
checkField(o[1]); |
@@ -1796,7 +1630,7 @@ buildStructType() { |
var o = new api.StructType(); |
buildCounterStructType++; |
if (buildCounterStructType < 3) { |
- o.fields = buildUnnamed2149(); |
+ o.fields = buildUnnamed2136(); |
} |
buildCounterStructType--; |
return o; |
@@ -1805,19 +1639,19 @@ buildStructType() { |
checkStructType(api.StructType o) { |
buildCounterStructType++; |
if (buildCounterStructType < 3) { |
- checkUnnamed2149(o.fields); |
+ checkUnnamed2136(o.fields); |
} |
buildCounterStructType--; |
} |
-buildUnnamed2150() { |
+buildUnnamed2137() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2150(core.List<core.String> o) { |
+checkUnnamed2137(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -1828,7 +1662,7 @@ buildTestIamPermissionsRequest() { |
var o = new api.TestIamPermissionsRequest(); |
buildCounterTestIamPermissionsRequest++; |
if (buildCounterTestIamPermissionsRequest < 3) { |
- o.permissions = buildUnnamed2150(); |
+ o.permissions = buildUnnamed2137(); |
} |
buildCounterTestIamPermissionsRequest--; |
return o; |
@@ -1837,19 +1671,19 @@ buildTestIamPermissionsRequest() { |
checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
buildCounterTestIamPermissionsRequest++; |
if (buildCounterTestIamPermissionsRequest < 3) { |
- checkUnnamed2150(o.permissions); |
+ checkUnnamed2137(o.permissions); |
} |
buildCounterTestIamPermissionsRequest--; |
} |
-buildUnnamed2151() { |
+buildUnnamed2138() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2151(core.List<core.String> o) { |
+checkUnnamed2138(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -1860,7 +1694,7 @@ buildTestIamPermissionsResponse() { |
var o = new api.TestIamPermissionsResponse(); |
buildCounterTestIamPermissionsResponse++; |
if (buildCounterTestIamPermissionsResponse < 3) { |
- o.permissions = buildUnnamed2151(); |
+ o.permissions = buildUnnamed2138(); |
} |
buildCounterTestIamPermissionsResponse--; |
return o; |
@@ -1869,7 +1703,7 @@ buildTestIamPermissionsResponse() { |
checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
buildCounterTestIamPermissionsResponse++; |
if (buildCounterTestIamPermissionsResponse < 3) { |
- checkUnnamed2151(o.permissions); |
+ checkUnnamed2138(o.permissions); |
} |
buildCounterTestIamPermissionsResponse--; |
} |
@@ -1962,27 +1796,27 @@ checkType(api.Type o) { |
buildCounterType--; |
} |
-buildUnnamed2152() { |
+buildUnnamed2139() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2152(core.List<core.String> o) { |
+checkUnnamed2139(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
} |
-buildUnnamed2153() { |
+buildUnnamed2140() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2153(core.List<core.String> o) { |
+checkUnnamed2140(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -1993,9 +1827,9 @@ buildUpdateDatabaseDdlMetadata() { |
var o = new api.UpdateDatabaseDdlMetadata(); |
buildCounterUpdateDatabaseDdlMetadata++; |
if (buildCounterUpdateDatabaseDdlMetadata < 3) { |
- o.commitTimestamps = buildUnnamed2152(); |
+ o.commitTimestamps = buildUnnamed2139(); |
o.database = "foo"; |
- o.statements = buildUnnamed2153(); |
+ o.statements = buildUnnamed2140(); |
} |
buildCounterUpdateDatabaseDdlMetadata--; |
return o; |
@@ -2004,21 +1838,21 @@ buildUpdateDatabaseDdlMetadata() { |
checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) { |
buildCounterUpdateDatabaseDdlMetadata++; |
if (buildCounterUpdateDatabaseDdlMetadata < 3) { |
- checkUnnamed2152(o.commitTimestamps); |
+ checkUnnamed2139(o.commitTimestamps); |
unittest.expect(o.database, unittest.equals('foo')); |
- checkUnnamed2153(o.statements); |
+ checkUnnamed2140(o.statements); |
} |
buildCounterUpdateDatabaseDdlMetadata--; |
} |
-buildUnnamed2154() { |
+buildUnnamed2141() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2154(core.List<core.String> o) { |
+checkUnnamed2141(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -2030,7 +1864,7 @@ buildUpdateDatabaseDdlRequest() { |
buildCounterUpdateDatabaseDdlRequest++; |
if (buildCounterUpdateDatabaseDdlRequest < 3) { |
o.operationId = "foo"; |
- o.statements = buildUnnamed2154(); |
+ o.statements = buildUnnamed2141(); |
} |
buildCounterUpdateDatabaseDdlRequest--; |
return o; |
@@ -2040,7 +1874,7 @@ checkUpdateDatabaseDdlRequest(api.UpdateDatabaseDdlRequest o) { |
buildCounterUpdateDatabaseDdlRequest++; |
if (buildCounterUpdateDatabaseDdlRequest < 3) { |
unittest.expect(o.operationId, unittest.equals('foo')); |
- checkUnnamed2154(o.statements); |
+ checkUnnamed2141(o.statements); |
} |
buildCounterUpdateDatabaseDdlRequest--; |
} |
@@ -2091,43 +1925,59 @@ checkUpdateInstanceRequest(api.UpdateInstanceRequest o) { |
buildCounterUpdateInstanceRequest--; |
} |
-buildUnnamed2155() { |
+buildUnnamed2142() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed2155(core.List<core.String> o) { |
+checkUnnamed2142(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
} |
-buildUnnamed2156() { |
+buildUnnamed2143() { |
var o = new core.List<core.Object>(); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
- o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
+ o.add({ |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }); |
return o; |
} |
-checkUnnamed2156(core.List<core.Object> o) { |
+checkUnnamed2143(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- var casted29 = (o[0]) as core.Map; unittest.expect(casted29, unittest.hasLength(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest.expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["string"], unittest.equals('foo')); |
- var casted30 = (o[1]) as core.Map; unittest.expect(casted30, unittest.hasLength(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest.expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["string"], unittest.equals('foo')); |
+ var casted29 = (o[0]) as core.Map; |
+ unittest.expect(casted29, unittest.hasLength(3)); |
+ unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted29["bool"], unittest.equals(true)); |
+ unittest.expect(casted29["string"], unittest.equals('foo')); |
+ var casted30 = (o[1]) as core.Map; |
+ unittest.expect(casted30, unittest.hasLength(3)); |
+ unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); |
+ unittest.expect(casted30["bool"], unittest.equals(true)); |
+ unittest.expect(casted30["string"], unittest.equals('foo')); |
} |
-buildUnnamed2157() { |
+buildUnnamed2144() { |
var o = new core.List<core.List<core.Object>>(); |
- o.add(buildUnnamed2156()); |
- o.add(buildUnnamed2156()); |
+ o.add(buildUnnamed2143()); |
+ o.add(buildUnnamed2143()); |
return o; |
} |
-checkUnnamed2157(core.List<core.List<core.Object>> o) { |
+checkUnnamed2144(core.List<core.List<core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed2156(o[0]); |
- checkUnnamed2156(o[1]); |
+ checkUnnamed2143(o[0]); |
+ checkUnnamed2143(o[1]); |
} |
core.int buildCounterWrite = 0; |
@@ -2135,9 +1985,9 @@ buildWrite() { |
var o = new api.Write(); |
buildCounterWrite++; |
if (buildCounterWrite < 3) { |
- o.columns = buildUnnamed2155(); |
+ o.columns = buildUnnamed2142(); |
o.table = "foo"; |
- o.values = buildUnnamed2157(); |
+ o.values = buildUnnamed2144(); |
} |
buildCounterWrite--; |
return o; |
@@ -2146,42 +1996,14 @@ buildWrite() { |
checkWrite(api.Write o) { |
buildCounterWrite++; |
if (buildCounterWrite < 3) { |
- checkUnnamed2155(o.columns); |
+ checkUnnamed2142(o.columns); |
unittest.expect(o.table, unittest.equals('foo')); |
- checkUnnamed2157(o.values); |
+ checkUnnamed2144(o.values); |
} |
buildCounterWrite--; |
} |
- |
main() { |
- unittest.group("obj-schema-AuditConfig", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildAuditConfig(); |
- var od = new api.AuditConfig.fromJson(o.toJson()); |
- checkAuditConfig(od); |
- }); |
- }); |
- |
- |
- unittest.group("obj-schema-AuditLogConfig", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildAuditLogConfig(); |
- var od = new api.AuditLogConfig.fromJson(o.toJson()); |
- checkAuditLogConfig(od); |
- }); |
- }); |
- |
- |
- unittest.group("obj-schema-AuthorizationLoggingOptions", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildAuthorizationLoggingOptions(); |
- var od = new api.AuthorizationLoggingOptions.fromJson(o.toJson()); |
- checkAuthorizationLoggingOptions(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-BeginTransactionRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildBeginTransactionRequest(); |
@@ -2190,7 +2012,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Binding", () { |
unittest.test("to-json--from-json", () { |
var o = buildBinding(); |
@@ -2199,7 +2020,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ChildLink", () { |
unittest.test("to-json--from-json", () { |
var o = buildChildLink(); |
@@ -2208,16 +2028,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-CloudAuditOptions", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildCloudAuditOptions(); |
- var od = new api.CloudAuditOptions.fromJson(o.toJson()); |
- checkCloudAuditOptions(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-CommitRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildCommitRequest(); |
@@ -2226,7 +2036,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-CommitResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildCommitResponse(); |
@@ -2235,25 +2044,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-Condition", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildCondition(); |
- var od = new api.Condition.fromJson(o.toJson()); |
- checkCondition(od); |
- }); |
- }); |
- |
- |
- unittest.group("obj-schema-CounterOptions", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildCounterOptions(); |
- var od = new api.CounterOptions.fromJson(o.toJson()); |
- checkCounterOptions(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-CreateDatabaseMetadata", () { |
unittest.test("to-json--from-json", () { |
var o = buildCreateDatabaseMetadata(); |
@@ -2262,7 +2052,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-CreateDatabaseRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildCreateDatabaseRequest(); |
@@ -2271,7 +2060,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-CreateInstanceMetadata", () { |
unittest.test("to-json--from-json", () { |
var o = buildCreateInstanceMetadata(); |
@@ -2280,7 +2068,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-CreateInstanceRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildCreateInstanceRequest(); |
@@ -2289,16 +2076,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-DataAccessOptions", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildDataAccessOptions(); |
- var od = new api.DataAccessOptions.fromJson(o.toJson()); |
- checkDataAccessOptions(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-Database", () { |
unittest.test("to-json--from-json", () { |
var o = buildDatabase(); |
@@ -2307,7 +2084,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Delete", () { |
unittest.test("to-json--from-json", () { |
var o = buildDelete(); |
@@ -2316,7 +2092,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Empty", () { |
unittest.test("to-json--from-json", () { |
var o = buildEmpty(); |
@@ -2325,7 +2100,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ExecuteSqlRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildExecuteSqlRequest(); |
@@ -2334,16 +2108,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-Expr", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildExpr(); |
- var od = new api.Expr.fromJson(o.toJson()); |
- checkExpr(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-Field", () { |
unittest.test("to-json--from-json", () { |
var o = buildField(); |
@@ -2352,7 +2116,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-GetDatabaseDdlResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildGetDatabaseDdlResponse(); |
@@ -2361,7 +2124,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-GetIamPolicyRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildGetIamPolicyRequest(); |
@@ -2370,7 +2132,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Instance", () { |
unittest.test("to-json--from-json", () { |
var o = buildInstance(); |
@@ -2379,7 +2140,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-InstanceConfig", () { |
unittest.test("to-json--from-json", () { |
var o = buildInstanceConfig(); |
@@ -2388,7 +2148,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-KeyRange", () { |
unittest.test("to-json--from-json", () { |
var o = buildKeyRange(); |
@@ -2397,7 +2156,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-KeySet", () { |
unittest.test("to-json--from-json", () { |
var o = buildKeySet(); |
@@ -2406,7 +2164,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListDatabasesResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListDatabasesResponse(); |
@@ -2415,7 +2172,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListInstanceConfigsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListInstanceConfigsResponse(); |
@@ -2424,7 +2180,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListInstancesResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListInstancesResponse(); |
@@ -2433,7 +2188,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ListOperationsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildListOperationsResponse(); |
@@ -2442,16 +2196,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-LogConfig", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildLogConfig(); |
- var od = new api.LogConfig.fromJson(o.toJson()); |
- checkLogConfig(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-Mutation", () { |
unittest.test("to-json--from-json", () { |
var o = buildMutation(); |
@@ -2460,7 +2204,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Operation", () { |
unittest.test("to-json--from-json", () { |
var o = buildOperation(); |
@@ -2469,7 +2212,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-PartialResultSet", () { |
unittest.test("to-json--from-json", () { |
var o = buildPartialResultSet(); |
@@ -2478,7 +2220,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-PlanNode", () { |
unittest.test("to-json--from-json", () { |
var o = buildPlanNode(); |
@@ -2487,7 +2228,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Policy", () { |
unittest.test("to-json--from-json", () { |
var o = buildPolicy(); |
@@ -2496,7 +2236,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-QueryPlan", () { |
unittest.test("to-json--from-json", () { |
var o = buildQueryPlan(); |
@@ -2505,7 +2244,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ReadOnly", () { |
unittest.test("to-json--from-json", () { |
var o = buildReadOnly(); |
@@ -2514,7 +2252,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ReadRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildReadRequest(); |
@@ -2523,7 +2260,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ReadWrite", () { |
unittest.test("to-json--from-json", () { |
var o = buildReadWrite(); |
@@ -2532,7 +2268,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ResultSet", () { |
unittest.test("to-json--from-json", () { |
var o = buildResultSet(); |
@@ -2541,7 +2276,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ResultSetMetadata", () { |
unittest.test("to-json--from-json", () { |
var o = buildResultSetMetadata(); |
@@ -2550,7 +2284,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ResultSetStats", () { |
unittest.test("to-json--from-json", () { |
var o = buildResultSetStats(); |
@@ -2559,7 +2292,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-RollbackRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildRollbackRequest(); |
@@ -2568,16 +2300,6 @@ main() { |
}); |
}); |
- |
- unittest.group("obj-schema-Rule", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildRule(); |
- var od = new api.Rule.fromJson(o.toJson()); |
- checkRule(od); |
- }); |
- }); |
- |
- |
unittest.group("obj-schema-Session", () { |
unittest.test("to-json--from-json", () { |
var o = buildSession(); |
@@ -2586,7 +2308,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-SetIamPolicyRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildSetIamPolicyRequest(); |
@@ -2595,7 +2316,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-ShortRepresentation", () { |
unittest.test("to-json--from-json", () { |
var o = buildShortRepresentation(); |
@@ -2604,7 +2324,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Status", () { |
unittest.test("to-json--from-json", () { |
var o = buildStatus(); |
@@ -2613,7 +2332,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-StructType", () { |
unittest.test("to-json--from-json", () { |
var o = buildStructType(); |
@@ -2622,7 +2340,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TestIamPermissionsRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildTestIamPermissionsRequest(); |
@@ -2631,7 +2348,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TestIamPermissionsResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildTestIamPermissionsResponse(); |
@@ -2640,7 +2356,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Transaction", () { |
unittest.test("to-json--from-json", () { |
var o = buildTransaction(); |
@@ -2649,7 +2364,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TransactionOptions", () { |
unittest.test("to-json--from-json", () { |
var o = buildTransactionOptions(); |
@@ -2658,7 +2372,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-TransactionSelector", () { |
unittest.test("to-json--from-json", () { |
var o = buildTransactionSelector(); |
@@ -2667,7 +2380,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Type", () { |
unittest.test("to-json--from-json", () { |
var o = buildType(); |
@@ -2676,7 +2388,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-UpdateDatabaseDdlMetadata", () { |
unittest.test("to-json--from-json", () { |
var o = buildUpdateDatabaseDdlMetadata(); |
@@ -2685,7 +2396,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-UpdateDatabaseDdlRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildUpdateDatabaseDdlRequest(); |
@@ -2694,7 +2404,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-UpdateInstanceMetadata", () { |
unittest.test("to-json--from-json", () { |
var o = buildUpdateInstanceMetadata(); |
@@ -2703,7 +2412,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-UpdateInstanceRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildUpdateInstanceRequest(); |
@@ -2712,7 +2420,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-Write", () { |
unittest.test("to-json--from-json", () { |
var o = buildWrite(); |
@@ -2721,21 +2428,22 @@ main() { |
}); |
}); |
- |
unittest.group("resource-ProjectsInstanceConfigsResourceApi", () { |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstanceConfigsResourceApi res = new api.SpannerApi(mock).projects.instanceConfigs; |
+ api.ProjectsInstanceConfigsResourceApi res = |
+ new api.SpannerApi(mock).projects.instanceConfigs; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -2749,29 +2457,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildInstanceConfig()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_name).then(unittest.expectAsync1(((api.InstanceConfig response) { |
+ res |
+ .get(arg_name) |
+ .then(unittest.expectAsync1(((api.InstanceConfig response) { |
checkInstanceConfig(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstanceConfigsResourceApi res = new api.SpannerApi(mock).projects.instanceConfigs; |
+ api.ProjectsInstanceConfigsResourceApi res = |
+ new api.SpannerApi(mock).projects.instanceConfigs; |
var arg_parent = "foo"; |
var arg_pageToken = "foo"; |
var arg_pageSize = 42; |
@@ -2780,9 +2491,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -2796,35 +2509,39 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
- |
+ unittest.expect( |
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), |
+ unittest.equals(arg_pageSize)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildListInstanceConfigsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstanceConfigsResponse response) { |
+ res |
+ .list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize) |
+ .then(unittest |
+ .expectAsync1(((api.ListInstanceConfigsResponse response) { |
checkListInstanceConfigsResponse(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-ProjectsInstancesResourceApi", () { |
unittest.test("method--create", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; |
+ api.ProjectsInstancesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances; |
var arg_request = buildCreateInstanceRequest(); |
var arg_parent = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -2835,9 +2552,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -2851,38 +2570,43 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .create(arg_request, arg_parent) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--delete", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; |
+ api.ProjectsInstancesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -2896,16 +2620,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -2916,18 +2641,20 @@ main() { |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; |
+ api.ProjectsInstancesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -2941,16 +2668,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildInstance()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -2961,9 +2689,9 @@ main() { |
}); |
unittest.test("method--getIamPolicy", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; |
+ api.ProjectsInstancesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances; |
var arg_request = buildGetIamPolicyRequest(); |
var arg_resource = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -2974,9 +2702,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -2990,29 +2720,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildPolicy()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { |
+ res |
+ .getIamPolicy(arg_request, arg_resource) |
+ .then(unittest.expectAsync1(((api.Policy response) { |
checkPolicy(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; |
+ api.ProjectsInstancesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances; |
var arg_parent = "foo"; |
var arg_pageToken = "foo"; |
var arg_pageSize = 42; |
@@ -3022,9 +2755,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3038,32 +2773,40 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
+ unittest.expect( |
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), |
+ unittest.equals(arg_pageSize)); |
unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildListInstancesResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListInstancesResponse response) { |
+ res |
+ .list(arg_parent, |
+ pageToken: arg_pageToken, |
+ pageSize: arg_pageSize, |
+ filter: arg_filter) |
+ .then(unittest.expectAsync1(((api.ListInstancesResponse response) { |
checkListInstancesResponse(response); |
}))); |
}); |
unittest.test("method--patch", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; |
+ api.ProjectsInstancesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances; |
var arg_request = buildUpdateInstanceRequest(); |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3074,9 +2817,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3090,29 +2835,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.patch(arg_request, arg_name).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .patch(arg_request, arg_name) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--setIamPolicy", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; |
+ api.ProjectsInstancesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances; |
var arg_request = buildSetIamPolicyRequest(); |
var arg_resource = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3123,9 +2871,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3139,29 +2889,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildPolicy()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { |
+ res |
+ .setIamPolicy(arg_request, arg_resource) |
+ .then(unittest.expectAsync1(((api.Policy response) { |
checkPolicy(response); |
}))); |
}); |
unittest.test("method--testIamPermissions", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; |
+ api.ProjectsInstancesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances; |
var arg_request = buildTestIamPermissionsRequest(); |
var arg_resource = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3172,9 +2925,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3188,33 +2943,33 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { |
+ res.testIamPermissions(arg_request, arg_resource).then( |
+ unittest.expectAsync1(((api.TestIamPermissionsResponse response) { |
checkTestIamPermissionsResponse(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-ProjectsInstancesDatabasesResourceApi", () { |
unittest.test("method--create", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; |
+ api.ProjectsInstancesDatabasesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases; |
var arg_request = buildCreateDatabaseRequest(); |
var arg_parent = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3225,9 +2980,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3241,38 +2998,43 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .create(arg_request, arg_parent) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
unittest.test("method--dropDatabase", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; |
+ api.ProjectsInstancesDatabasesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases; |
var arg_database = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3286,38 +3048,43 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.dropDatabase(arg_database).then(unittest.expectAsync1(((api.Empty response) { |
+ res |
+ .dropDatabase(arg_database) |
+ .then(unittest.expectAsync1(((api.Empty response) { |
checkEmpty(response); |
}))); |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; |
+ api.ProjectsInstancesDatabasesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3331,16 +3098,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildDatabase()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -3351,18 +3119,20 @@ main() { |
}); |
unittest.test("method--getDdl", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; |
+ api.ProjectsInstancesDatabasesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases; |
var arg_database = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3376,29 +3146,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildGetDatabaseDdlResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.getDdl(arg_database).then(unittest.expectAsync1(((api.GetDatabaseDdlResponse response) { |
+ res |
+ .getDdl(arg_database) |
+ .then(unittest.expectAsync1(((api.GetDatabaseDdlResponse response) { |
checkGetDatabaseDdlResponse(response); |
}))); |
}); |
unittest.test("method--getIamPolicy", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; |
+ api.ProjectsInstancesDatabasesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases; |
var arg_request = buildGetIamPolicyRequest(); |
var arg_resource = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3409,9 +3182,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3425,29 +3200,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildPolicy()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { |
+ res |
+ .getIamPolicy(arg_request, arg_resource) |
+ .then(unittest.expectAsync1(((api.Policy response) { |
checkPolicy(response); |
}))); |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; |
+ api.ProjectsInstancesDatabasesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases; |
var arg_parent = "foo"; |
var arg_pageToken = "foo"; |
var arg_pageSize = 42; |
@@ -3456,9 +3234,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3472,31 +3252,36 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
- |
+ unittest.expect( |
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), |
+ unittest.equals(arg_pageSize)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildListDatabasesResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListDatabasesResponse response) { |
+ res |
+ .list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize) |
+ .then(unittest.expectAsync1(((api.ListDatabasesResponse response) { |
checkListDatabasesResponse(response); |
}))); |
}); |
unittest.test("method--setIamPolicy", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; |
+ api.ProjectsInstancesDatabasesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases; |
var arg_request = buildSetIamPolicyRequest(); |
var arg_resource = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3507,9 +3292,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3523,29 +3310,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildPolicy()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) { |
+ res |
+ .setIamPolicy(arg_request, arg_resource) |
+ .then(unittest.expectAsync1(((api.Policy response) { |
checkPolicy(response); |
}))); |
}); |
unittest.test("method--testIamPermissions", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; |
+ api.ProjectsInstancesDatabasesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases; |
var arg_request = buildTestIamPermissionsRequest(); |
var arg_resource = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3556,9 +3346,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3572,29 +3364,31 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) { |
+ res.testIamPermissions(arg_request, arg_resource).then( |
+ unittest.expectAsync1(((api.TestIamPermissionsResponse response) { |
checkTestIamPermissionsResponse(response); |
}))); |
}); |
unittest.test("method--updateDdl", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; |
+ api.ProjectsInstancesDatabasesResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases; |
var arg_request = buildUpdateDatabaseDdlRequest(); |
var arg_database = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3605,9 +3399,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3621,42 +3417,46 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.updateDdl(arg_request, arg_database).then(unittest.expectAsync1(((api.Operation response) { |
+ res |
+ .updateDdl(arg_request, arg_database) |
+ .then(unittest.expectAsync1(((api.Operation response) { |
checkOperation(response); |
}))); |
}); |
- |
}); |
- |
- unittest.group("resource-ProjectsInstancesDatabasesOperationsResourceApi", () { |
+ unittest.group("resource-ProjectsInstancesDatabasesOperationsResourceApi", |
+ () { |
unittest.test("method--cancel", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.operations; |
+ api.ProjectsInstancesDatabasesOperationsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.operations; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3670,16 +3470,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -3690,18 +3491,20 @@ main() { |
}); |
unittest.test("method--delete", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.operations; |
+ api.ProjectsInstancesDatabasesOperationsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.operations; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3715,16 +3518,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -3735,18 +3539,20 @@ main() { |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.operations; |
+ api.ProjectsInstancesDatabasesOperationsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.operations; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3760,16 +3566,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -3780,21 +3587,23 @@ main() { |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.operations; |
+ api.ProjectsInstancesDatabasesOperationsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.operations; |
var arg_name = "foo"; |
+ var arg_filter = "foo"; |
var arg_pageToken = "foo"; |
var arg_pageSize = 42; |
- var arg_filter = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3808,36 +3617,42 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
- |
+ unittest.expect( |
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), |
+ unittest.equals(arg_pageSize)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildListOperationsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
+ res |
+ .list(arg_name, |
+ filter: arg_filter, |
+ pageToken: arg_pageToken, |
+ pageSize: arg_pageSize) |
+ .then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
checkListOperationsResponse(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-ProjectsInstancesDatabasesSessionsResourceApi", () { |
unittest.test("method--beginTransaction", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_request = buildBeginTransactionRequest(); |
var arg_session = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3848,9 +3663,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3864,29 +3681,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildTransaction()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.beginTransaction(arg_request, arg_session).then(unittest.expectAsync1(((api.Transaction response) { |
+ res |
+ .beginTransaction(arg_request, arg_session) |
+ .then(unittest.expectAsync1(((api.Transaction response) { |
checkTransaction(response); |
}))); |
}); |
unittest.test("method--commit", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_request = buildCommitRequest(); |
var arg_session = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -3897,9 +3717,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3913,38 +3735,43 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildCommitResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.commit(arg_request, arg_session).then(unittest.expectAsync1(((api.CommitResponse response) { |
+ res |
+ .commit(arg_request, arg_session) |
+ .then(unittest.expectAsync1(((api.CommitResponse response) { |
checkCommitResponse(response); |
}))); |
}); |
unittest.test("method--create", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_database = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -3958,38 +3785,43 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildSession()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.create(arg_database).then(unittest.expectAsync1(((api.Session response) { |
+ res |
+ .create(arg_database) |
+ .then(unittest.expectAsync1(((api.Session response) { |
checkSession(response); |
}))); |
}); |
unittest.test("method--delete", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4003,16 +3835,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -4023,9 +3856,9 @@ main() { |
}); |
unittest.test("method--executeSql", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_request = buildExecuteSqlRequest(); |
var arg_session = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -4036,9 +3869,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4052,29 +3887,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildResultSet()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.executeSql(arg_request, arg_session).then(unittest.expectAsync1(((api.ResultSet response) { |
+ res |
+ .executeSql(arg_request, arg_session) |
+ .then(unittest.expectAsync1(((api.ResultSet response) { |
checkResultSet(response); |
}))); |
}); |
unittest.test("method--executeStreamingSql", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_request = buildExecuteSqlRequest(); |
var arg_session = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -4085,9 +3923,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4101,38 +3941,43 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildPartialResultSet()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.executeStreamingSql(arg_request, arg_session).then(unittest.expectAsync1(((api.PartialResultSet response) { |
+ res |
+ .executeStreamingSql(arg_request, arg_session) |
+ .then(unittest.expectAsync1(((api.PartialResultSet response) { |
checkPartialResultSet(response); |
}))); |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4146,16 +3991,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildSession()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -4166,9 +4012,9 @@ main() { |
}); |
unittest.test("method--read", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_request = buildReadRequest(); |
var arg_session = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -4179,9 +4025,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4195,29 +4043,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildResultSet()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.read(arg_request, arg_session).then(unittest.expectAsync1(((api.ResultSet response) { |
+ res |
+ .read(arg_request, arg_session) |
+ .then(unittest.expectAsync1(((api.ResultSet response) { |
checkResultSet(response); |
}))); |
}); |
unittest.test("method--rollback", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_request = buildRollbackRequest(); |
var arg_session = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -4228,9 +4079,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4244,29 +4097,32 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.rollback(arg_request, arg_session).then(unittest.expectAsync1(((api.Empty response) { |
+ res |
+ .rollback(arg_request, arg_session) |
+ .then(unittest.expectAsync1(((api.Empty response) { |
checkEmpty(response); |
}))); |
}); |
unittest.test("method--streamingRead", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; |
+ api.ProjectsInstancesDatabasesSessionsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.databases.sessions; |
var arg_request = buildReadRequest(); |
var arg_session = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
@@ -4277,9 +4133,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4293,42 +4151,45 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildPartialResultSet()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.streamingRead(arg_request, arg_session).then(unittest.expectAsync1(((api.PartialResultSet response) { |
+ res |
+ .streamingRead(arg_request, arg_session) |
+ .then(unittest.expectAsync1(((api.PartialResultSet response) { |
checkPartialResultSet(response); |
}))); |
}); |
- |
}); |
- |
unittest.group("resource-ProjectsInstancesOperationsResourceApi", () { |
unittest.test("method--cancel", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; |
+ api.ProjectsInstancesOperationsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.operations; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4342,16 +4203,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -4362,18 +4224,20 @@ main() { |
}); |
unittest.test("method--delete", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; |
+ api.ProjectsInstancesOperationsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.operations; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4387,16 +4251,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -4407,18 +4272,20 @@ main() { |
}); |
unittest.test("method--get", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; |
+ api.ProjectsInstancesOperationsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.operations; |
var arg_name = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4432,16 +4299,17 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
@@ -4452,9 +4320,9 @@ main() { |
}); |
unittest.test("method--list", () { |
- |
var mock = new HttpServerMock(); |
- api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; |
+ api.ProjectsInstancesOperationsResourceApi res = |
+ new api.SpannerApi(mock).projects.instances.operations; |
var arg_name = "foo"; |
var arg_filter = "foo"; |
var arg_pageToken = "foo"; |
@@ -4464,9 +4332,11 @@ main() { |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
pathOffset += 3; |
// NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
@@ -4480,30 +4350,34 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
- unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
- |
+ unittest.expect( |
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), |
+ unittest.equals(arg_pageSize)); |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildListOperationsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
+ res |
+ .list(arg_name, |
+ filter: arg_filter, |
+ pageToken: arg_pageToken, |
+ pageSize: arg_pageSize) |
+ .then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
checkListOperationsResponse(response); |
}))); |
}); |
- |
}); |
- |
- |
} |
- |