OLD | NEW |
1 library googleapis_beta.logging.v1beta3.test; | 1 library googleapis_beta.logging.v1beta3.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 checkJobQueryResponse(o.jobQueryResponse); | 93 checkJobQueryResponse(o.jobQueryResponse); |
94 checkTableDataListRequest(o.tableDataListRequest); | 94 checkTableDataListRequest(o.tableDataListRequest); |
95 checkTableInsertRequest(o.tableInsertRequest); | 95 checkTableInsertRequest(o.tableInsertRequest); |
96 checkTableInsertResponse(o.tableInsertResponse); | 96 checkTableInsertResponse(o.tableInsertResponse); |
97 checkTableUpdateRequest(o.tableUpdateRequest); | 97 checkTableUpdateRequest(o.tableUpdateRequest); |
98 checkTableUpdateResponse(o.tableUpdateResponse); | 98 checkTableUpdateResponse(o.tableUpdateResponse); |
99 } | 99 } |
100 buildCounterAuditData--; | 100 buildCounterAuditData--; |
101 } | 101 } |
102 | 102 |
103 buildUnnamed2460() { | 103 buildUnnamed2451() { |
104 var o = new core.List<api.AuthorizationInfo>(); | 104 var o = new core.List<api.AuthorizationInfo>(); |
105 o.add(buildAuthorizationInfo()); | 105 o.add(buildAuthorizationInfo()); |
106 o.add(buildAuthorizationInfo()); | 106 o.add(buildAuthorizationInfo()); |
107 return o; | 107 return o; |
108 } | 108 } |
109 | 109 |
110 checkUnnamed2460(core.List<api.AuthorizationInfo> o) { | 110 checkUnnamed2451(core.List<api.AuthorizationInfo> o) { |
111 unittest.expect(o, unittest.hasLength(2)); | 111 unittest.expect(o, unittest.hasLength(2)); |
112 checkAuthorizationInfo(o[0]); | 112 checkAuthorizationInfo(o[0]); |
113 checkAuthorizationInfo(o[1]); | 113 checkAuthorizationInfo(o[1]); |
114 } | 114 } |
115 | 115 |
116 buildUnnamed2461() { | 116 buildUnnamed2452() { |
117 var o = new core.Map<core.String, core.Object>(); | 117 var o = new core.Map<core.String, core.Object>(); |
118 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 118 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
119 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 119 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
120 return o; | 120 return o; |
121 } | 121 } |
122 | 122 |
123 checkUnnamed2461(core.Map<core.String, core.Object> o) { | 123 checkUnnamed2452(core.Map<core.String, core.Object> o) { |
124 unittest.expect(o, unittest.hasLength(2)); | 124 unittest.expect(o, unittest.hasLength(2)); |
125 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 125 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
126 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 126 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
127 } | 127 } |
128 | 128 |
129 core.int buildCounterAuditLog = 0; | 129 core.int buildCounterAuditLog = 0; |
130 buildAuditLog() { | 130 buildAuditLog() { |
131 var o = new api.AuditLog(); | 131 var o = new api.AuditLog(); |
132 buildCounterAuditLog++; | 132 buildCounterAuditLog++; |
133 if (buildCounterAuditLog < 3) { | 133 if (buildCounterAuditLog < 3) { |
134 o.authenticationInfo = buildAuthenticationInfo(); | 134 o.authenticationInfo = buildAuthenticationInfo(); |
135 o.authorizationInfo = buildUnnamed2460(); | 135 o.authorizationInfo = buildUnnamed2451(); |
136 o.bigqueryData = buildAuditData(); | 136 o.bigqueryData = buildAuditData(); |
137 o.methodName = "foo"; | 137 o.methodName = "foo"; |
138 o.numResponseItems = "foo"; | 138 o.numResponseItems = "foo"; |
139 o.requestMetadata = buildRequestMetadata(); | 139 o.requestMetadata = buildRequestMetadata(); |
140 o.resourceName = "foo"; | 140 o.resourceName = "foo"; |
141 o.serviceData = buildUnnamed2461(); | 141 o.serviceData = buildUnnamed2452(); |
142 o.serviceName = "foo"; | 142 o.serviceName = "foo"; |
143 o.status = buildStatus(); | 143 o.status = buildStatus(); |
144 } | 144 } |
145 buildCounterAuditLog--; | 145 buildCounterAuditLog--; |
146 return o; | 146 return o; |
147 } | 147 } |
148 | 148 |
149 checkAuditLog(api.AuditLog o) { | 149 checkAuditLog(api.AuditLog o) { |
150 buildCounterAuditLog++; | 150 buildCounterAuditLog++; |
151 if (buildCounterAuditLog < 3) { | 151 if (buildCounterAuditLog < 3) { |
152 checkAuthenticationInfo(o.authenticationInfo); | 152 checkAuthenticationInfo(o.authenticationInfo); |
153 checkUnnamed2460(o.authorizationInfo); | 153 checkUnnamed2451(o.authorizationInfo); |
154 checkAuditData(o.bigqueryData); | 154 checkAuditData(o.bigqueryData); |
155 unittest.expect(o.methodName, unittest.equals('foo')); | 155 unittest.expect(o.methodName, unittest.equals('foo')); |
156 unittest.expect(o.numResponseItems, unittest.equals('foo')); | 156 unittest.expect(o.numResponseItems, unittest.equals('foo')); |
157 checkRequestMetadata(o.requestMetadata); | 157 checkRequestMetadata(o.requestMetadata); |
158 unittest.expect(o.resourceName, unittest.equals('foo')); | 158 unittest.expect(o.resourceName, unittest.equals('foo')); |
159 checkUnnamed2461(o.serviceData); | 159 checkUnnamed2452(o.serviceData); |
160 unittest.expect(o.serviceName, unittest.equals('foo')); | 160 unittest.expect(o.serviceName, unittest.equals('foo')); |
161 checkStatus(o.status); | 161 checkStatus(o.status); |
162 } | 162 } |
163 buildCounterAuditLog--; | 163 buildCounterAuditLog--; |
164 } | 164 } |
165 | 165 |
166 core.int buildCounterAuthenticationInfo = 0; | 166 core.int buildCounterAuthenticationInfo = 0; |
167 buildAuthenticationInfo() { | 167 buildAuthenticationInfo() { |
168 var o = new api.AuthenticationInfo(); | 168 var o = new api.AuthenticationInfo(); |
169 buildCounterAuthenticationInfo++; | 169 buildCounterAuthenticationInfo++; |
(...skipping 28 matching lines...) Expand all Loading... |
198 checkAuthorizationInfo(api.AuthorizationInfo o) { | 198 checkAuthorizationInfo(api.AuthorizationInfo o) { |
199 buildCounterAuthorizationInfo++; | 199 buildCounterAuthorizationInfo++; |
200 if (buildCounterAuthorizationInfo < 3) { | 200 if (buildCounterAuthorizationInfo < 3) { |
201 unittest.expect(o.granted, unittest.isTrue); | 201 unittest.expect(o.granted, unittest.isTrue); |
202 unittest.expect(o.permission, unittest.equals('foo')); | 202 unittest.expect(o.permission, unittest.equals('foo')); |
203 unittest.expect(o.resource, unittest.equals('foo')); | 203 unittest.expect(o.resource, unittest.equals('foo')); |
204 } | 204 } |
205 buildCounterAuthorizationInfo--; | 205 buildCounterAuthorizationInfo--; |
206 } | 206 } |
207 | 207 |
208 buildUnnamed2462() { | 208 buildUnnamed2453() { |
209 var o = new core.List<api.Entry>(); | 209 var o = new core.List<api.Entry>(); |
210 o.add(buildEntry()); | 210 o.add(buildEntry()); |
211 o.add(buildEntry()); | 211 o.add(buildEntry()); |
212 return o; | 212 return o; |
213 } | 213 } |
214 | 214 |
215 checkUnnamed2462(core.List<api.Entry> o) { | 215 checkUnnamed2453(core.List<api.Entry> o) { |
216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
217 checkEntry(o[0]); | 217 checkEntry(o[0]); |
218 checkEntry(o[1]); | 218 checkEntry(o[1]); |
219 } | 219 } |
220 | 220 |
221 core.int buildCounterBigQueryAcl = 0; | 221 core.int buildCounterBigQueryAcl = 0; |
222 buildBigQueryAcl() { | 222 buildBigQueryAcl() { |
223 var o = new api.BigQueryAcl(); | 223 var o = new api.BigQueryAcl(); |
224 buildCounterBigQueryAcl++; | 224 buildCounterBigQueryAcl++; |
225 if (buildCounterBigQueryAcl < 3) { | 225 if (buildCounterBigQueryAcl < 3) { |
226 o.entries = buildUnnamed2462(); | 226 o.entries = buildUnnamed2453(); |
227 } | 227 } |
228 buildCounterBigQueryAcl--; | 228 buildCounterBigQueryAcl--; |
229 return o; | 229 return o; |
230 } | 230 } |
231 | 231 |
232 checkBigQueryAcl(api.BigQueryAcl o) { | 232 checkBigQueryAcl(api.BigQueryAcl o) { |
233 buildCounterBigQueryAcl++; | 233 buildCounterBigQueryAcl++; |
234 if (buildCounterBigQueryAcl < 3) { | 234 if (buildCounterBigQueryAcl < 3) { |
235 checkUnnamed2462(o.entries); | 235 checkUnnamed2453(o.entries); |
236 } | 236 } |
237 buildCounterBigQueryAcl--; | 237 buildCounterBigQueryAcl--; |
238 } | 238 } |
239 | 239 |
240 core.int buildCounterDataset = 0; | 240 core.int buildCounterDataset = 0; |
241 buildDataset() { | 241 buildDataset() { |
242 var o = new api.Dataset(); | 242 var o = new api.Dataset(); |
243 buildCounterDataset++; | 243 buildCounterDataset++; |
244 if (buildCounterDataset < 3) { | 244 if (buildCounterDataset < 3) { |
245 o.acl = buildBigQueryAcl(); | 245 o.acl = buildBigQueryAcl(); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 unittest.expect(o.domain, unittest.equals('foo')); | 442 unittest.expect(o.domain, unittest.equals('foo')); |
443 unittest.expect(o.groupEmail, unittest.equals('foo')); | 443 unittest.expect(o.groupEmail, unittest.equals('foo')); |
444 unittest.expect(o.role, unittest.equals('foo')); | 444 unittest.expect(o.role, unittest.equals('foo')); |
445 unittest.expect(o.specialGroup, unittest.equals('foo')); | 445 unittest.expect(o.specialGroup, unittest.equals('foo')); |
446 unittest.expect(o.userEmail, unittest.equals('foo')); | 446 unittest.expect(o.userEmail, unittest.equals('foo')); |
447 checkTableName(o.viewName); | 447 checkTableName(o.viewName); |
448 } | 448 } |
449 buildCounterEntry--; | 449 buildCounterEntry--; |
450 } | 450 } |
451 | 451 |
452 buildUnnamed2463() { | 452 buildUnnamed2454() { |
453 var o = new core.List<core.String>(); | 453 var o = new core.List<core.String>(); |
454 o.add("foo"); | 454 o.add("foo"); |
455 o.add("foo"); | 455 o.add("foo"); |
456 return o; | 456 return o; |
457 } | 457 } |
458 | 458 |
459 checkUnnamed2463(core.List<core.String> o) { | 459 checkUnnamed2454(core.List<core.String> o) { |
460 unittest.expect(o, unittest.hasLength(2)); | 460 unittest.expect(o, unittest.hasLength(2)); |
461 unittest.expect(o[0], unittest.equals('foo')); | 461 unittest.expect(o[0], unittest.equals('foo')); |
462 unittest.expect(o[1], unittest.equals('foo')); | 462 unittest.expect(o[1], unittest.equals('foo')); |
463 } | 463 } |
464 | 464 |
465 core.int buildCounterExtract = 0; | 465 core.int buildCounterExtract = 0; |
466 buildExtract() { | 466 buildExtract() { |
467 var o = new api.Extract(); | 467 var o = new api.Extract(); |
468 buildCounterExtract++; | 468 buildCounterExtract++; |
469 if (buildCounterExtract < 3) { | 469 if (buildCounterExtract < 3) { |
470 o.destinationUris = buildUnnamed2463(); | 470 o.destinationUris = buildUnnamed2454(); |
471 o.sourceTable = buildTableName(); | 471 o.sourceTable = buildTableName(); |
472 } | 472 } |
473 buildCounterExtract--; | 473 buildCounterExtract--; |
474 return o; | 474 return o; |
475 } | 475 } |
476 | 476 |
477 checkExtract(api.Extract o) { | 477 checkExtract(api.Extract o) { |
478 buildCounterExtract++; | 478 buildCounterExtract++; |
479 if (buildCounterExtract < 3) { | 479 if (buildCounterExtract < 3) { |
480 checkUnnamed2463(o.destinationUris); | 480 checkUnnamed2454(o.destinationUris); |
481 checkTableName(o.sourceTable); | 481 checkTableName(o.sourceTable); |
482 } | 482 } |
483 buildCounterExtract--; | 483 buildCounterExtract--; |
484 } | 484 } |
485 | 485 |
486 core.int buildCounterFieldSchema = 0; | 486 core.int buildCounterFieldSchema = 0; |
487 buildFieldSchema() { | 487 buildFieldSchema() { |
488 var o = new api.FieldSchema(); | 488 var o = new api.FieldSchema(); |
489 buildCounterFieldSchema++; | 489 buildCounterFieldSchema++; |
490 if (buildCounterFieldSchema < 3) { | 490 if (buildCounterFieldSchema < 3) { |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 | 781 |
782 checkJobStatus(api.JobStatus o) { | 782 checkJobStatus(api.JobStatus o) { |
783 buildCounterJobStatus++; | 783 buildCounterJobStatus++; |
784 if (buildCounterJobStatus < 3) { | 784 if (buildCounterJobStatus < 3) { |
785 checkStatus(o.error); | 785 checkStatus(o.error); |
786 unittest.expect(o.state, unittest.equals('foo')); | 786 unittest.expect(o.state, unittest.equals('foo')); |
787 } | 787 } |
788 buildCounterJobStatus--; | 788 buildCounterJobStatus--; |
789 } | 789 } |
790 | 790 |
791 buildUnnamed2464() { | 791 buildUnnamed2455() { |
792 var o = new core.List<core.String>(); | 792 var o = new core.List<core.String>(); |
793 o.add("foo"); | 793 o.add("foo"); |
794 o.add("foo"); | 794 o.add("foo"); |
795 return o; | 795 return o; |
796 } | 796 } |
797 | 797 |
798 checkUnnamed2464(core.List<core.String> o) { | 798 checkUnnamed2455(core.List<core.String> o) { |
799 unittest.expect(o, unittest.hasLength(2)); | 799 unittest.expect(o, unittest.hasLength(2)); |
800 unittest.expect(o[0], unittest.equals('foo')); | 800 unittest.expect(o[0], unittest.equals('foo')); |
801 unittest.expect(o[1], unittest.equals('foo')); | 801 unittest.expect(o[1], unittest.equals('foo')); |
802 } | 802 } |
803 | 803 |
804 core.int buildCounterListLogServiceIndexesResponse = 0; | 804 core.int buildCounterListLogServiceIndexesResponse = 0; |
805 buildListLogServiceIndexesResponse() { | 805 buildListLogServiceIndexesResponse() { |
806 var o = new api.ListLogServiceIndexesResponse(); | 806 var o = new api.ListLogServiceIndexesResponse(); |
807 buildCounterListLogServiceIndexesResponse++; | 807 buildCounterListLogServiceIndexesResponse++; |
808 if (buildCounterListLogServiceIndexesResponse < 3) { | 808 if (buildCounterListLogServiceIndexesResponse < 3) { |
809 o.nextPageToken = "foo"; | 809 o.nextPageToken = "foo"; |
810 o.serviceIndexPrefixes = buildUnnamed2464(); | 810 o.serviceIndexPrefixes = buildUnnamed2455(); |
811 } | 811 } |
812 buildCounterListLogServiceIndexesResponse--; | 812 buildCounterListLogServiceIndexesResponse--; |
813 return o; | 813 return o; |
814 } | 814 } |
815 | 815 |
816 checkListLogServiceIndexesResponse(api.ListLogServiceIndexesResponse o) { | 816 checkListLogServiceIndexesResponse(api.ListLogServiceIndexesResponse o) { |
817 buildCounterListLogServiceIndexesResponse++; | 817 buildCounterListLogServiceIndexesResponse++; |
818 if (buildCounterListLogServiceIndexesResponse < 3) { | 818 if (buildCounterListLogServiceIndexesResponse < 3) { |
819 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 819 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
820 checkUnnamed2464(o.serviceIndexPrefixes); | 820 checkUnnamed2455(o.serviceIndexPrefixes); |
821 } | 821 } |
822 buildCounterListLogServiceIndexesResponse--; | 822 buildCounterListLogServiceIndexesResponse--; |
823 } | 823 } |
824 | 824 |
825 buildUnnamed2465() { | 825 buildUnnamed2456() { |
826 var o = new core.List<api.LogSink>(); | 826 var o = new core.List<api.LogSink>(); |
827 o.add(buildLogSink()); | 827 o.add(buildLogSink()); |
828 o.add(buildLogSink()); | 828 o.add(buildLogSink()); |
829 return o; | 829 return o; |
830 } | 830 } |
831 | 831 |
832 checkUnnamed2465(core.List<api.LogSink> o) { | 832 checkUnnamed2456(core.List<api.LogSink> o) { |
833 unittest.expect(o, unittest.hasLength(2)); | 833 unittest.expect(o, unittest.hasLength(2)); |
834 checkLogSink(o[0]); | 834 checkLogSink(o[0]); |
835 checkLogSink(o[1]); | 835 checkLogSink(o[1]); |
836 } | 836 } |
837 | 837 |
838 core.int buildCounterListLogServiceSinksResponse = 0; | 838 core.int buildCounterListLogServiceSinksResponse = 0; |
839 buildListLogServiceSinksResponse() { | 839 buildListLogServiceSinksResponse() { |
840 var o = new api.ListLogServiceSinksResponse(); | 840 var o = new api.ListLogServiceSinksResponse(); |
841 buildCounterListLogServiceSinksResponse++; | 841 buildCounterListLogServiceSinksResponse++; |
842 if (buildCounterListLogServiceSinksResponse < 3) { | 842 if (buildCounterListLogServiceSinksResponse < 3) { |
843 o.sinks = buildUnnamed2465(); | 843 o.sinks = buildUnnamed2456(); |
844 } | 844 } |
845 buildCounterListLogServiceSinksResponse--; | 845 buildCounterListLogServiceSinksResponse--; |
846 return o; | 846 return o; |
847 } | 847 } |
848 | 848 |
849 checkListLogServiceSinksResponse(api.ListLogServiceSinksResponse o) { | 849 checkListLogServiceSinksResponse(api.ListLogServiceSinksResponse o) { |
850 buildCounterListLogServiceSinksResponse++; | 850 buildCounterListLogServiceSinksResponse++; |
851 if (buildCounterListLogServiceSinksResponse < 3) { | 851 if (buildCounterListLogServiceSinksResponse < 3) { |
852 checkUnnamed2465(o.sinks); | 852 checkUnnamed2456(o.sinks); |
853 } | 853 } |
854 buildCounterListLogServiceSinksResponse--; | 854 buildCounterListLogServiceSinksResponse--; |
855 } | 855 } |
856 | 856 |
857 buildUnnamed2466() { | 857 buildUnnamed2457() { |
858 var o = new core.List<api.LogService>(); | 858 var o = new core.List<api.LogService>(); |
859 o.add(buildLogService()); | 859 o.add(buildLogService()); |
860 o.add(buildLogService()); | 860 o.add(buildLogService()); |
861 return o; | 861 return o; |
862 } | 862 } |
863 | 863 |
864 checkUnnamed2466(core.List<api.LogService> o) { | 864 checkUnnamed2457(core.List<api.LogService> o) { |
865 unittest.expect(o, unittest.hasLength(2)); | 865 unittest.expect(o, unittest.hasLength(2)); |
866 checkLogService(o[0]); | 866 checkLogService(o[0]); |
867 checkLogService(o[1]); | 867 checkLogService(o[1]); |
868 } | 868 } |
869 | 869 |
870 core.int buildCounterListLogServicesResponse = 0; | 870 core.int buildCounterListLogServicesResponse = 0; |
871 buildListLogServicesResponse() { | 871 buildListLogServicesResponse() { |
872 var o = new api.ListLogServicesResponse(); | 872 var o = new api.ListLogServicesResponse(); |
873 buildCounterListLogServicesResponse++; | 873 buildCounterListLogServicesResponse++; |
874 if (buildCounterListLogServicesResponse < 3) { | 874 if (buildCounterListLogServicesResponse < 3) { |
875 o.logServices = buildUnnamed2466(); | 875 o.logServices = buildUnnamed2457(); |
876 o.nextPageToken = "foo"; | 876 o.nextPageToken = "foo"; |
877 } | 877 } |
878 buildCounterListLogServicesResponse--; | 878 buildCounterListLogServicesResponse--; |
879 return o; | 879 return o; |
880 } | 880 } |
881 | 881 |
882 checkListLogServicesResponse(api.ListLogServicesResponse o) { | 882 checkListLogServicesResponse(api.ListLogServicesResponse o) { |
883 buildCounterListLogServicesResponse++; | 883 buildCounterListLogServicesResponse++; |
884 if (buildCounterListLogServicesResponse < 3) { | 884 if (buildCounterListLogServicesResponse < 3) { |
885 checkUnnamed2466(o.logServices); | 885 checkUnnamed2457(o.logServices); |
886 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 886 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
887 } | 887 } |
888 buildCounterListLogServicesResponse--; | 888 buildCounterListLogServicesResponse--; |
889 } | 889 } |
890 | 890 |
891 buildUnnamed2467() { | 891 buildUnnamed2458() { |
892 var o = new core.List<api.LogSink>(); | 892 var o = new core.List<api.LogSink>(); |
893 o.add(buildLogSink()); | 893 o.add(buildLogSink()); |
894 o.add(buildLogSink()); | 894 o.add(buildLogSink()); |
895 return o; | 895 return o; |
896 } | 896 } |
897 | 897 |
898 checkUnnamed2467(core.List<api.LogSink> o) { | 898 checkUnnamed2458(core.List<api.LogSink> o) { |
899 unittest.expect(o, unittest.hasLength(2)); | 899 unittest.expect(o, unittest.hasLength(2)); |
900 checkLogSink(o[0]); | 900 checkLogSink(o[0]); |
901 checkLogSink(o[1]); | 901 checkLogSink(o[1]); |
902 } | 902 } |
903 | 903 |
904 core.int buildCounterListLogSinksResponse = 0; | 904 core.int buildCounterListLogSinksResponse = 0; |
905 buildListLogSinksResponse() { | 905 buildListLogSinksResponse() { |
906 var o = new api.ListLogSinksResponse(); | 906 var o = new api.ListLogSinksResponse(); |
907 buildCounterListLogSinksResponse++; | 907 buildCounterListLogSinksResponse++; |
908 if (buildCounterListLogSinksResponse < 3) { | 908 if (buildCounterListLogSinksResponse < 3) { |
909 o.sinks = buildUnnamed2467(); | 909 o.sinks = buildUnnamed2458(); |
910 } | 910 } |
911 buildCounterListLogSinksResponse--; | 911 buildCounterListLogSinksResponse--; |
912 return o; | 912 return o; |
913 } | 913 } |
914 | 914 |
915 checkListLogSinksResponse(api.ListLogSinksResponse o) { | 915 checkListLogSinksResponse(api.ListLogSinksResponse o) { |
916 buildCounterListLogSinksResponse++; | 916 buildCounterListLogSinksResponse++; |
917 if (buildCounterListLogSinksResponse < 3) { | 917 if (buildCounterListLogSinksResponse < 3) { |
918 checkUnnamed2467(o.sinks); | 918 checkUnnamed2458(o.sinks); |
919 } | 919 } |
920 buildCounterListLogSinksResponse--; | 920 buildCounterListLogSinksResponse--; |
921 } | 921 } |
922 | 922 |
923 buildUnnamed2468() { | 923 buildUnnamed2459() { |
924 var o = new core.List<api.Log>(); | 924 var o = new core.List<api.Log>(); |
925 o.add(buildLog()); | 925 o.add(buildLog()); |
926 o.add(buildLog()); | 926 o.add(buildLog()); |
927 return o; | 927 return o; |
928 } | 928 } |
929 | 929 |
930 checkUnnamed2468(core.List<api.Log> o) { | 930 checkUnnamed2459(core.List<api.Log> o) { |
931 unittest.expect(o, unittest.hasLength(2)); | 931 unittest.expect(o, unittest.hasLength(2)); |
932 checkLog(o[0]); | 932 checkLog(o[0]); |
933 checkLog(o[1]); | 933 checkLog(o[1]); |
934 } | 934 } |
935 | 935 |
936 core.int buildCounterListLogsResponse = 0; | 936 core.int buildCounterListLogsResponse = 0; |
937 buildListLogsResponse() { | 937 buildListLogsResponse() { |
938 var o = new api.ListLogsResponse(); | 938 var o = new api.ListLogsResponse(); |
939 buildCounterListLogsResponse++; | 939 buildCounterListLogsResponse++; |
940 if (buildCounterListLogsResponse < 3) { | 940 if (buildCounterListLogsResponse < 3) { |
941 o.logs = buildUnnamed2468(); | 941 o.logs = buildUnnamed2459(); |
942 o.nextPageToken = "foo"; | 942 o.nextPageToken = "foo"; |
943 } | 943 } |
944 buildCounterListLogsResponse--; | 944 buildCounterListLogsResponse--; |
945 return o; | 945 return o; |
946 } | 946 } |
947 | 947 |
948 checkListLogsResponse(api.ListLogsResponse o) { | 948 checkListLogsResponse(api.ListLogsResponse o) { |
949 buildCounterListLogsResponse++; | 949 buildCounterListLogsResponse++; |
950 if (buildCounterListLogsResponse < 3) { | 950 if (buildCounterListLogsResponse < 3) { |
951 checkUnnamed2468(o.logs); | 951 checkUnnamed2459(o.logs); |
952 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 952 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
953 } | 953 } |
954 buildCounterListLogsResponse--; | 954 buildCounterListLogsResponse--; |
955 } | 955 } |
956 | 956 |
957 buildUnnamed2469() { | 957 buildUnnamed2460() { |
958 var o = new core.List<api.LogSink>(); | 958 var o = new core.List<api.LogSink>(); |
959 o.add(buildLogSink()); | 959 o.add(buildLogSink()); |
960 o.add(buildLogSink()); | 960 o.add(buildLogSink()); |
961 return o; | 961 return o; |
962 } | 962 } |
963 | 963 |
964 checkUnnamed2469(core.List<api.LogSink> o) { | 964 checkUnnamed2460(core.List<api.LogSink> o) { |
965 unittest.expect(o, unittest.hasLength(2)); | 965 unittest.expect(o, unittest.hasLength(2)); |
966 checkLogSink(o[0]); | 966 checkLogSink(o[0]); |
967 checkLogSink(o[1]); | 967 checkLogSink(o[1]); |
968 } | 968 } |
969 | 969 |
970 core.int buildCounterListSinksResponse = 0; | 970 core.int buildCounterListSinksResponse = 0; |
971 buildListSinksResponse() { | 971 buildListSinksResponse() { |
972 var o = new api.ListSinksResponse(); | 972 var o = new api.ListSinksResponse(); |
973 buildCounterListSinksResponse++; | 973 buildCounterListSinksResponse++; |
974 if (buildCounterListSinksResponse < 3) { | 974 if (buildCounterListSinksResponse < 3) { |
975 o.sinks = buildUnnamed2469(); | 975 o.sinks = buildUnnamed2460(); |
976 } | 976 } |
977 buildCounterListSinksResponse--; | 977 buildCounterListSinksResponse--; |
978 return o; | 978 return o; |
979 } | 979 } |
980 | 980 |
981 checkListSinksResponse(api.ListSinksResponse o) { | 981 checkListSinksResponse(api.ListSinksResponse o) { |
982 buildCounterListSinksResponse++; | 982 buildCounterListSinksResponse++; |
983 if (buildCounterListSinksResponse < 3) { | 983 if (buildCounterListSinksResponse < 3) { |
984 checkUnnamed2469(o.sinks); | 984 checkUnnamed2460(o.sinks); |
985 } | 985 } |
986 buildCounterListSinksResponse--; | 986 buildCounterListSinksResponse--; |
987 } | 987 } |
988 | 988 |
989 buildUnnamed2470() { | 989 buildUnnamed2461() { |
990 var o = new core.List<core.String>(); | 990 var o = new core.List<core.String>(); |
991 o.add("foo"); | 991 o.add("foo"); |
992 o.add("foo"); | 992 o.add("foo"); |
993 return o; | 993 return o; |
994 } | 994 } |
995 | 995 |
996 checkUnnamed2470(core.List<core.String> o) { | 996 checkUnnamed2461(core.List<core.String> o) { |
997 unittest.expect(o, unittest.hasLength(2)); | 997 unittest.expect(o, unittest.hasLength(2)); |
998 unittest.expect(o[0], unittest.equals('foo')); | 998 unittest.expect(o[0], unittest.equals('foo')); |
999 unittest.expect(o[1], unittest.equals('foo')); | 999 unittest.expect(o[1], unittest.equals('foo')); |
1000 } | 1000 } |
1001 | 1001 |
1002 core.int buildCounterLoad = 0; | 1002 core.int buildCounterLoad = 0; |
1003 buildLoad() { | 1003 buildLoad() { |
1004 var o = new api.Load(); | 1004 var o = new api.Load(); |
1005 buildCounterLoad++; | 1005 buildCounterLoad++; |
1006 if (buildCounterLoad < 3) { | 1006 if (buildCounterLoad < 3) { |
1007 o.createDisposition = "foo"; | 1007 o.createDisposition = "foo"; |
1008 o.destinationTable = buildTableName(); | 1008 o.destinationTable = buildTableName(); |
1009 o.schema = buildTableSchema(); | 1009 o.schema = buildTableSchema(); |
1010 o.sourceUris = buildUnnamed2470(); | 1010 o.sourceUris = buildUnnamed2461(); |
1011 o.writeDisposition = "foo"; | 1011 o.writeDisposition = "foo"; |
1012 } | 1012 } |
1013 buildCounterLoad--; | 1013 buildCounterLoad--; |
1014 return o; | 1014 return o; |
1015 } | 1015 } |
1016 | 1016 |
1017 checkLoad(api.Load o) { | 1017 checkLoad(api.Load o) { |
1018 buildCounterLoad++; | 1018 buildCounterLoad++; |
1019 if (buildCounterLoad < 3) { | 1019 if (buildCounterLoad < 3) { |
1020 unittest.expect(o.createDisposition, unittest.equals('foo')); | 1020 unittest.expect(o.createDisposition, unittest.equals('foo')); |
1021 checkTableName(o.destinationTable); | 1021 checkTableName(o.destinationTable); |
1022 checkTableSchema(o.schema); | 1022 checkTableSchema(o.schema); |
1023 checkUnnamed2470(o.sourceUris); | 1023 checkUnnamed2461(o.sourceUris); |
1024 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 1024 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
1025 } | 1025 } |
1026 buildCounterLoad--; | 1026 buildCounterLoad--; |
1027 } | 1027 } |
1028 | 1028 |
1029 core.int buildCounterLog = 0; | 1029 core.int buildCounterLog = 0; |
1030 buildLog() { | 1030 buildLog() { |
1031 var o = new api.Log(); | 1031 var o = new api.Log(); |
1032 buildCounterLog++; | 1032 buildCounterLog++; |
1033 if (buildCounterLog < 3) { | 1033 if (buildCounterLog < 3) { |
1034 o.displayName = "foo"; | 1034 o.displayName = "foo"; |
1035 o.name = "foo"; | 1035 o.name = "foo"; |
1036 o.payloadType = "foo"; | 1036 o.payloadType = "foo"; |
1037 } | 1037 } |
1038 buildCounterLog--; | 1038 buildCounterLog--; |
1039 return o; | 1039 return o; |
1040 } | 1040 } |
1041 | 1041 |
1042 checkLog(api.Log o) { | 1042 checkLog(api.Log o) { |
1043 buildCounterLog++; | 1043 buildCounterLog++; |
1044 if (buildCounterLog < 3) { | 1044 if (buildCounterLog < 3) { |
1045 unittest.expect(o.displayName, unittest.equals('foo')); | 1045 unittest.expect(o.displayName, unittest.equals('foo')); |
1046 unittest.expect(o.name, unittest.equals('foo')); | 1046 unittest.expect(o.name, unittest.equals('foo')); |
1047 unittest.expect(o.payloadType, unittest.equals('foo')); | 1047 unittest.expect(o.payloadType, unittest.equals('foo')); |
1048 } | 1048 } |
1049 buildCounterLog--; | 1049 buildCounterLog--; |
1050 } | 1050 } |
1051 | 1051 |
1052 buildUnnamed2471() { | 1052 buildUnnamed2462() { |
1053 var o = new core.Map<core.String, core.Object>(); | 1053 var o = new core.Map<core.String, core.Object>(); |
1054 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1054 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1055 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1055 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1056 return o; | 1056 return o; |
1057 } | 1057 } |
1058 | 1058 |
1059 checkUnnamed2471(core.Map<core.String, core.Object> o) { | 1059 checkUnnamed2462(core.Map<core.String, core.Object> o) { |
1060 unittest.expect(o, unittest.hasLength(2)); | 1060 unittest.expect(o, unittest.hasLength(2)); |
1061 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 1061 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
1062 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 1062 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
1063 } | 1063 } |
1064 | 1064 |
1065 buildUnnamed2472() { | 1065 buildUnnamed2463() { |
1066 var o = new core.Map<core.String, core.Object>(); | 1066 var o = new core.Map<core.String, core.Object>(); |
1067 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1067 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1068 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1068 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1069 return o; | 1069 return o; |
1070 } | 1070 } |
1071 | 1071 |
1072 checkUnnamed2472(core.Map<core.String, core.Object> o) { | 1072 checkUnnamed2463(core.Map<core.String, core.Object> o) { |
1073 unittest.expect(o, unittest.hasLength(2)); | 1073 unittest.expect(o, unittest.hasLength(2)); |
1074 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1074 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
1075 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1075 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
1076 } | 1076 } |
1077 | 1077 |
1078 core.int buildCounterLogEntry = 0; | 1078 core.int buildCounterLogEntry = 0; |
1079 buildLogEntry() { | 1079 buildLogEntry() { |
1080 var o = new api.LogEntry(); | 1080 var o = new api.LogEntry(); |
1081 buildCounterLogEntry++; | 1081 buildCounterLogEntry++; |
1082 if (buildCounterLogEntry < 3) { | 1082 if (buildCounterLogEntry < 3) { |
1083 o.httpRequest = buildHttpRequest(); | 1083 o.httpRequest = buildHttpRequest(); |
1084 o.insertId = "foo"; | 1084 o.insertId = "foo"; |
1085 o.log = "foo"; | 1085 o.log = "foo"; |
1086 o.metadata = buildLogEntryMetadata(); | 1086 o.metadata = buildLogEntryMetadata(); |
1087 o.protoPayload = buildUnnamed2471(); | 1087 o.protoPayload = buildUnnamed2462(); |
1088 o.structPayload = buildUnnamed2472(); | 1088 o.structPayload = buildUnnamed2463(); |
1089 o.textPayload = "foo"; | 1089 o.textPayload = "foo"; |
1090 } | 1090 } |
1091 buildCounterLogEntry--; | 1091 buildCounterLogEntry--; |
1092 return o; | 1092 return o; |
1093 } | 1093 } |
1094 | 1094 |
1095 checkLogEntry(api.LogEntry o) { | 1095 checkLogEntry(api.LogEntry o) { |
1096 buildCounterLogEntry++; | 1096 buildCounterLogEntry++; |
1097 if (buildCounterLogEntry < 3) { | 1097 if (buildCounterLogEntry < 3) { |
1098 checkHttpRequest(o.httpRequest); | 1098 checkHttpRequest(o.httpRequest); |
1099 unittest.expect(o.insertId, unittest.equals('foo')); | 1099 unittest.expect(o.insertId, unittest.equals('foo')); |
1100 unittest.expect(o.log, unittest.equals('foo')); | 1100 unittest.expect(o.log, unittest.equals('foo')); |
1101 checkLogEntryMetadata(o.metadata); | 1101 checkLogEntryMetadata(o.metadata); |
1102 checkUnnamed2471(o.protoPayload); | 1102 checkUnnamed2462(o.protoPayload); |
1103 checkUnnamed2472(o.structPayload); | 1103 checkUnnamed2463(o.structPayload); |
1104 unittest.expect(o.textPayload, unittest.equals('foo')); | 1104 unittest.expect(o.textPayload, unittest.equals('foo')); |
1105 } | 1105 } |
1106 buildCounterLogEntry--; | 1106 buildCounterLogEntry--; |
1107 } | 1107 } |
1108 | 1108 |
1109 buildUnnamed2473() { | 1109 buildUnnamed2464() { |
1110 var o = new core.Map<core.String, core.String>(); | 1110 var o = new core.Map<core.String, core.String>(); |
1111 o["x"] = "foo"; | 1111 o["x"] = "foo"; |
1112 o["y"] = "foo"; | 1112 o["y"] = "foo"; |
1113 return o; | 1113 return o; |
1114 } | 1114 } |
1115 | 1115 |
1116 checkUnnamed2473(core.Map<core.String, core.String> o) { | 1116 checkUnnamed2464(core.Map<core.String, core.String> o) { |
1117 unittest.expect(o, unittest.hasLength(2)); | 1117 unittest.expect(o, unittest.hasLength(2)); |
1118 unittest.expect(o["x"], unittest.equals('foo')); | 1118 unittest.expect(o["x"], unittest.equals('foo')); |
1119 unittest.expect(o["y"], unittest.equals('foo')); | 1119 unittest.expect(o["y"], unittest.equals('foo')); |
1120 } | 1120 } |
1121 | 1121 |
1122 core.int buildCounterLogEntryMetadata = 0; | 1122 core.int buildCounterLogEntryMetadata = 0; |
1123 buildLogEntryMetadata() { | 1123 buildLogEntryMetadata() { |
1124 var o = new api.LogEntryMetadata(); | 1124 var o = new api.LogEntryMetadata(); |
1125 buildCounterLogEntryMetadata++; | 1125 buildCounterLogEntryMetadata++; |
1126 if (buildCounterLogEntryMetadata < 3) { | 1126 if (buildCounterLogEntryMetadata < 3) { |
1127 o.labels = buildUnnamed2473(); | 1127 o.labels = buildUnnamed2464(); |
1128 o.projectId = "foo"; | 1128 o.projectId = "foo"; |
1129 o.region = "foo"; | 1129 o.region = "foo"; |
1130 o.serviceName = "foo"; | 1130 o.serviceName = "foo"; |
1131 o.severity = "foo"; | 1131 o.severity = "foo"; |
1132 o.timestamp = "foo"; | 1132 o.timestamp = "foo"; |
1133 o.userId = "foo"; | 1133 o.userId = "foo"; |
1134 o.zone = "foo"; | 1134 o.zone = "foo"; |
1135 } | 1135 } |
1136 buildCounterLogEntryMetadata--; | 1136 buildCounterLogEntryMetadata--; |
1137 return o; | 1137 return o; |
1138 } | 1138 } |
1139 | 1139 |
1140 checkLogEntryMetadata(api.LogEntryMetadata o) { | 1140 checkLogEntryMetadata(api.LogEntryMetadata o) { |
1141 buildCounterLogEntryMetadata++; | 1141 buildCounterLogEntryMetadata++; |
1142 if (buildCounterLogEntryMetadata < 3) { | 1142 if (buildCounterLogEntryMetadata < 3) { |
1143 checkUnnamed2473(o.labels); | 1143 checkUnnamed2464(o.labels); |
1144 unittest.expect(o.projectId, unittest.equals('foo')); | 1144 unittest.expect(o.projectId, unittest.equals('foo')); |
1145 unittest.expect(o.region, unittest.equals('foo')); | 1145 unittest.expect(o.region, unittest.equals('foo')); |
1146 unittest.expect(o.serviceName, unittest.equals('foo')); | 1146 unittest.expect(o.serviceName, unittest.equals('foo')); |
1147 unittest.expect(o.severity, unittest.equals('foo')); | 1147 unittest.expect(o.severity, unittest.equals('foo')); |
1148 unittest.expect(o.timestamp, unittest.equals('foo')); | 1148 unittest.expect(o.timestamp, unittest.equals('foo')); |
1149 unittest.expect(o.userId, unittest.equals('foo')); | 1149 unittest.expect(o.userId, unittest.equals('foo')); |
1150 unittest.expect(o.zone, unittest.equals('foo')); | 1150 unittest.expect(o.zone, unittest.equals('foo')); |
1151 } | 1151 } |
1152 buildCounterLogEntryMetadata--; | 1152 buildCounterLogEntryMetadata--; |
1153 } | 1153 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 buildCounterLogLine++; | 1193 buildCounterLogLine++; |
1194 if (buildCounterLogLine < 3) { | 1194 if (buildCounterLogLine < 3) { |
1195 unittest.expect(o.logMessage, unittest.equals('foo')); | 1195 unittest.expect(o.logMessage, unittest.equals('foo')); |
1196 unittest.expect(o.severity, unittest.equals('foo')); | 1196 unittest.expect(o.severity, unittest.equals('foo')); |
1197 checkSourceLocation(o.sourceLocation); | 1197 checkSourceLocation(o.sourceLocation); |
1198 unittest.expect(o.time, unittest.equals('foo')); | 1198 unittest.expect(o.time, unittest.equals('foo')); |
1199 } | 1199 } |
1200 buildCounterLogLine--; | 1200 buildCounterLogLine--; |
1201 } | 1201 } |
1202 | 1202 |
1203 buildUnnamed2474() { | 1203 buildUnnamed2465() { |
1204 var o = new core.List<core.String>(); | 1204 var o = new core.List<core.String>(); |
1205 o.add("foo"); | 1205 o.add("foo"); |
1206 o.add("foo"); | 1206 o.add("foo"); |
1207 return o; | 1207 return o; |
1208 } | 1208 } |
1209 | 1209 |
1210 checkUnnamed2474(core.List<core.String> o) { | 1210 checkUnnamed2465(core.List<core.String> o) { |
1211 unittest.expect(o, unittest.hasLength(2)); | 1211 unittest.expect(o, unittest.hasLength(2)); |
1212 unittest.expect(o[0], unittest.equals('foo')); | 1212 unittest.expect(o[0], unittest.equals('foo')); |
1213 unittest.expect(o[1], unittest.equals('foo')); | 1213 unittest.expect(o[1], unittest.equals('foo')); |
1214 } | 1214 } |
1215 | 1215 |
1216 core.int buildCounterLogService = 0; | 1216 core.int buildCounterLogService = 0; |
1217 buildLogService() { | 1217 buildLogService() { |
1218 var o = new api.LogService(); | 1218 var o = new api.LogService(); |
1219 buildCounterLogService++; | 1219 buildCounterLogService++; |
1220 if (buildCounterLogService < 3) { | 1220 if (buildCounterLogService < 3) { |
1221 o.indexKeys = buildUnnamed2474(); | 1221 o.indexKeys = buildUnnamed2465(); |
1222 o.name = "foo"; | 1222 o.name = "foo"; |
1223 } | 1223 } |
1224 buildCounterLogService--; | 1224 buildCounterLogService--; |
1225 return o; | 1225 return o; |
1226 } | 1226 } |
1227 | 1227 |
1228 checkLogService(api.LogService o) { | 1228 checkLogService(api.LogService o) { |
1229 buildCounterLogService++; | 1229 buildCounterLogService++; |
1230 if (buildCounterLogService < 3) { | 1230 if (buildCounterLogService < 3) { |
1231 checkUnnamed2474(o.indexKeys); | 1231 checkUnnamed2465(o.indexKeys); |
1232 unittest.expect(o.name, unittest.equals('foo')); | 1232 unittest.expect(o.name, unittest.equals('foo')); |
1233 } | 1233 } |
1234 buildCounterLogService--; | 1234 buildCounterLogService--; |
1235 } | 1235 } |
1236 | 1236 |
1237 buildUnnamed2475() { | 1237 buildUnnamed2466() { |
1238 var o = new core.List<api.LogError>(); | 1238 var o = new core.List<api.LogError>(); |
1239 o.add(buildLogError()); | 1239 o.add(buildLogError()); |
1240 o.add(buildLogError()); | 1240 o.add(buildLogError()); |
1241 return o; | 1241 return o; |
1242 } | 1242 } |
1243 | 1243 |
1244 checkUnnamed2475(core.List<api.LogError> o) { | 1244 checkUnnamed2466(core.List<api.LogError> o) { |
1245 unittest.expect(o, unittest.hasLength(2)); | 1245 unittest.expect(o, unittest.hasLength(2)); |
1246 checkLogError(o[0]); | 1246 checkLogError(o[0]); |
1247 checkLogError(o[1]); | 1247 checkLogError(o[1]); |
1248 } | 1248 } |
1249 | 1249 |
1250 core.int buildCounterLogSink = 0; | 1250 core.int buildCounterLogSink = 0; |
1251 buildLogSink() { | 1251 buildLogSink() { |
1252 var o = new api.LogSink(); | 1252 var o = new api.LogSink(); |
1253 buildCounterLogSink++; | 1253 buildCounterLogSink++; |
1254 if (buildCounterLogSink < 3) { | 1254 if (buildCounterLogSink < 3) { |
1255 o.destination = "foo"; | 1255 o.destination = "foo"; |
1256 o.errors = buildUnnamed2475(); | 1256 o.errors = buildUnnamed2466(); |
1257 o.filter = "foo"; | 1257 o.filter = "foo"; |
1258 o.name = "foo"; | 1258 o.name = "foo"; |
1259 } | 1259 } |
1260 buildCounterLogSink--; | 1260 buildCounterLogSink--; |
1261 return o; | 1261 return o; |
1262 } | 1262 } |
1263 | 1263 |
1264 checkLogSink(api.LogSink o) { | 1264 checkLogSink(api.LogSink o) { |
1265 buildCounterLogSink++; | 1265 buildCounterLogSink++; |
1266 if (buildCounterLogSink < 3) { | 1266 if (buildCounterLogSink < 3) { |
1267 unittest.expect(o.destination, unittest.equals('foo')); | 1267 unittest.expect(o.destination, unittest.equals('foo')); |
1268 checkUnnamed2475(o.errors); | 1268 checkUnnamed2466(o.errors); |
1269 unittest.expect(o.filter, unittest.equals('foo')); | 1269 unittest.expect(o.filter, unittest.equals('foo')); |
1270 unittest.expect(o.name, unittest.equals('foo')); | 1270 unittest.expect(o.name, unittest.equals('foo')); |
1271 } | 1271 } |
1272 buildCounterLogSink--; | 1272 buildCounterLogSink--; |
1273 } | 1273 } |
1274 | 1274 |
1275 core.int buildCounterMoney = 0; | 1275 core.int buildCounterMoney = 0; |
1276 buildMoney() { | 1276 buildMoney() { |
1277 var o = new api.Money(); | 1277 var o = new api.Money(); |
1278 buildCounterMoney++; | 1278 buildCounterMoney++; |
1279 if (buildCounterMoney < 3) { | 1279 if (buildCounterMoney < 3) { |
1280 o.currencyCode = "foo"; | 1280 o.currencyCode = "foo"; |
1281 o.nanos = 42; | 1281 o.nanos = 42; |
1282 o.units = "foo"; | 1282 o.units = "foo"; |
1283 } | 1283 } |
1284 buildCounterMoney--; | 1284 buildCounterMoney--; |
1285 return o; | 1285 return o; |
1286 } | 1286 } |
1287 | 1287 |
1288 checkMoney(api.Money o) { | 1288 checkMoney(api.Money o) { |
1289 buildCounterMoney++; | 1289 buildCounterMoney++; |
1290 if (buildCounterMoney < 3) { | 1290 if (buildCounterMoney < 3) { |
1291 unittest.expect(o.currencyCode, unittest.equals('foo')); | 1291 unittest.expect(o.currencyCode, unittest.equals('foo')); |
1292 unittest.expect(o.nanos, unittest.equals(42)); | 1292 unittest.expect(o.nanos, unittest.equals(42)); |
1293 unittest.expect(o.units, unittest.equals('foo')); | 1293 unittest.expect(o.units, unittest.equals('foo')); |
1294 } | 1294 } |
1295 buildCounterMoney--; | 1295 buildCounterMoney--; |
1296 } | 1296 } |
1297 | 1297 |
1298 buildUnnamed2476() { | 1298 buildUnnamed2467() { |
1299 var o = new core.List<api.TableDefinition>(); | 1299 var o = new core.List<api.TableDefinition>(); |
1300 o.add(buildTableDefinition()); | 1300 o.add(buildTableDefinition()); |
1301 o.add(buildTableDefinition()); | 1301 o.add(buildTableDefinition()); |
1302 return o; | 1302 return o; |
1303 } | 1303 } |
1304 | 1304 |
1305 checkUnnamed2476(core.List<api.TableDefinition> o) { | 1305 checkUnnamed2467(core.List<api.TableDefinition> o) { |
1306 unittest.expect(o, unittest.hasLength(2)); | 1306 unittest.expect(o, unittest.hasLength(2)); |
1307 checkTableDefinition(o[0]); | 1307 checkTableDefinition(o[0]); |
1308 checkTableDefinition(o[1]); | 1308 checkTableDefinition(o[1]); |
1309 } | 1309 } |
1310 | 1310 |
1311 core.int buildCounterQuery = 0; | 1311 core.int buildCounterQuery = 0; |
1312 buildQuery() { | 1312 buildQuery() { |
1313 var o = new api.Query(); | 1313 var o = new api.Query(); |
1314 buildCounterQuery++; | 1314 buildCounterQuery++; |
1315 if (buildCounterQuery < 3) { | 1315 if (buildCounterQuery < 3) { |
1316 o.createDisposition = "foo"; | 1316 o.createDisposition = "foo"; |
1317 o.defaultDataset = buildDatasetName(); | 1317 o.defaultDataset = buildDatasetName(); |
1318 o.destinationTable = buildTableName(); | 1318 o.destinationTable = buildTableName(); |
1319 o.query = "foo"; | 1319 o.query = "foo"; |
1320 o.tableDefinitions = buildUnnamed2476(); | 1320 o.tableDefinitions = buildUnnamed2467(); |
1321 o.writeDisposition = "foo"; | 1321 o.writeDisposition = "foo"; |
1322 } | 1322 } |
1323 buildCounterQuery--; | 1323 buildCounterQuery--; |
1324 return o; | 1324 return o; |
1325 } | 1325 } |
1326 | 1326 |
1327 checkQuery(api.Query o) { | 1327 checkQuery(api.Query o) { |
1328 buildCounterQuery++; | 1328 buildCounterQuery++; |
1329 if (buildCounterQuery < 3) { | 1329 if (buildCounterQuery < 3) { |
1330 unittest.expect(o.createDisposition, unittest.equals('foo')); | 1330 unittest.expect(o.createDisposition, unittest.equals('foo')); |
1331 checkDatasetName(o.defaultDataset); | 1331 checkDatasetName(o.defaultDataset); |
1332 checkTableName(o.destinationTable); | 1332 checkTableName(o.destinationTable); |
1333 unittest.expect(o.query, unittest.equals('foo')); | 1333 unittest.expect(o.query, unittest.equals('foo')); |
1334 checkUnnamed2476(o.tableDefinitions); | 1334 checkUnnamed2467(o.tableDefinitions); |
1335 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 1335 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
1336 } | 1336 } |
1337 buildCounterQuery--; | 1337 buildCounterQuery--; |
1338 } | 1338 } |
1339 | 1339 |
1340 buildUnnamed2477() { | 1340 buildUnnamed2468() { |
1341 var o = new core.List<api.LogLine>(); | 1341 var o = new core.List<api.LogLine>(); |
1342 o.add(buildLogLine()); | 1342 o.add(buildLogLine()); |
1343 o.add(buildLogLine()); | 1343 o.add(buildLogLine()); |
1344 return o; | 1344 return o; |
1345 } | 1345 } |
1346 | 1346 |
1347 checkUnnamed2477(core.List<api.LogLine> o) { | 1347 checkUnnamed2468(core.List<api.LogLine> o) { |
1348 unittest.expect(o, unittest.hasLength(2)); | 1348 unittest.expect(o, unittest.hasLength(2)); |
1349 checkLogLine(o[0]); | 1349 checkLogLine(o[0]); |
1350 checkLogLine(o[1]); | 1350 checkLogLine(o[1]); |
1351 } | 1351 } |
1352 | 1352 |
1353 buildUnnamed2478() { | 1353 buildUnnamed2469() { |
1354 var o = new core.List<api.SourceReference>(); | 1354 var o = new core.List<api.SourceReference>(); |
1355 o.add(buildSourceReference()); | 1355 o.add(buildSourceReference()); |
1356 o.add(buildSourceReference()); | 1356 o.add(buildSourceReference()); |
1357 return o; | 1357 return o; |
1358 } | 1358 } |
1359 | 1359 |
1360 checkUnnamed2478(core.List<api.SourceReference> o) { | 1360 checkUnnamed2469(core.List<api.SourceReference> o) { |
1361 unittest.expect(o, unittest.hasLength(2)); | 1361 unittest.expect(o, unittest.hasLength(2)); |
1362 checkSourceReference(o[0]); | 1362 checkSourceReference(o[0]); |
1363 checkSourceReference(o[1]); | 1363 checkSourceReference(o[1]); |
1364 } | 1364 } |
1365 | 1365 |
1366 core.int buildCounterRequestLog = 0; | 1366 core.int buildCounterRequestLog = 0; |
1367 buildRequestLog() { | 1367 buildRequestLog() { |
1368 var o = new api.RequestLog(); | 1368 var o = new api.RequestLog(); |
1369 buildCounterRequestLog++; | 1369 buildCounterRequestLog++; |
1370 if (buildCounterRequestLog < 3) { | 1370 if (buildCounterRequestLog < 3) { |
1371 o.appEngineRelease = "foo"; | 1371 o.appEngineRelease = "foo"; |
1372 o.appId = "foo"; | 1372 o.appId = "foo"; |
1373 o.cost = 42.0; | 1373 o.cost = 42.0; |
1374 o.endTime = "foo"; | 1374 o.endTime = "foo"; |
1375 o.finished = true; | 1375 o.finished = true; |
1376 o.host = "foo"; | 1376 o.host = "foo"; |
1377 o.httpVersion = "foo"; | 1377 o.httpVersion = "foo"; |
1378 o.instanceId = "foo"; | 1378 o.instanceId = "foo"; |
1379 o.instanceIndex = 42; | 1379 o.instanceIndex = 42; |
1380 o.ip = "foo"; | 1380 o.ip = "foo"; |
1381 o.latency = "foo"; | 1381 o.latency = "foo"; |
1382 o.line = buildUnnamed2477(); | 1382 o.line = buildUnnamed2468(); |
1383 o.megaCycles = "foo"; | 1383 o.megaCycles = "foo"; |
1384 o.method = "foo"; | 1384 o.method = "foo"; |
1385 o.moduleId = "foo"; | 1385 o.moduleId = "foo"; |
1386 o.nickname = "foo"; | 1386 o.nickname = "foo"; |
1387 o.pendingTime = "foo"; | 1387 o.pendingTime = "foo"; |
1388 o.referrer = "foo"; | 1388 o.referrer = "foo"; |
1389 o.requestId = "foo"; | 1389 o.requestId = "foo"; |
1390 o.resource = "foo"; | 1390 o.resource = "foo"; |
1391 o.responseSize = "foo"; | 1391 o.responseSize = "foo"; |
1392 o.sourceReference = buildUnnamed2478(); | 1392 o.sourceReference = buildUnnamed2469(); |
1393 o.startTime = "foo"; | 1393 o.startTime = "foo"; |
1394 o.status = 42; | 1394 o.status = 42; |
1395 o.taskName = "foo"; | 1395 o.taskName = "foo"; |
1396 o.taskQueueName = "foo"; | 1396 o.taskQueueName = "foo"; |
1397 o.traceId = "foo"; | 1397 o.traceId = "foo"; |
1398 o.urlMapEntry = "foo"; | 1398 o.urlMapEntry = "foo"; |
1399 o.userAgent = "foo"; | 1399 o.userAgent = "foo"; |
1400 o.versionId = "foo"; | 1400 o.versionId = "foo"; |
1401 o.wasLoadingRequest = true; | 1401 o.wasLoadingRequest = true; |
1402 } | 1402 } |
1403 buildCounterRequestLog--; | 1403 buildCounterRequestLog--; |
1404 return o; | 1404 return o; |
1405 } | 1405 } |
1406 | 1406 |
1407 checkRequestLog(api.RequestLog o) { | 1407 checkRequestLog(api.RequestLog o) { |
1408 buildCounterRequestLog++; | 1408 buildCounterRequestLog++; |
1409 if (buildCounterRequestLog < 3) { | 1409 if (buildCounterRequestLog < 3) { |
1410 unittest.expect(o.appEngineRelease, unittest.equals('foo')); | 1410 unittest.expect(o.appEngineRelease, unittest.equals('foo')); |
1411 unittest.expect(o.appId, unittest.equals('foo')); | 1411 unittest.expect(o.appId, unittest.equals('foo')); |
1412 unittest.expect(o.cost, unittest.equals(42.0)); | 1412 unittest.expect(o.cost, unittest.equals(42.0)); |
1413 unittest.expect(o.endTime, unittest.equals('foo')); | 1413 unittest.expect(o.endTime, unittest.equals('foo')); |
1414 unittest.expect(o.finished, unittest.isTrue); | 1414 unittest.expect(o.finished, unittest.isTrue); |
1415 unittest.expect(o.host, unittest.equals('foo')); | 1415 unittest.expect(o.host, unittest.equals('foo')); |
1416 unittest.expect(o.httpVersion, unittest.equals('foo')); | 1416 unittest.expect(o.httpVersion, unittest.equals('foo')); |
1417 unittest.expect(o.instanceId, unittest.equals('foo')); | 1417 unittest.expect(o.instanceId, unittest.equals('foo')); |
1418 unittest.expect(o.instanceIndex, unittest.equals(42)); | 1418 unittest.expect(o.instanceIndex, unittest.equals(42)); |
1419 unittest.expect(o.ip, unittest.equals('foo')); | 1419 unittest.expect(o.ip, unittest.equals('foo')); |
1420 unittest.expect(o.latency, unittest.equals('foo')); | 1420 unittest.expect(o.latency, unittest.equals('foo')); |
1421 checkUnnamed2477(o.line); | 1421 checkUnnamed2468(o.line); |
1422 unittest.expect(o.megaCycles, unittest.equals('foo')); | 1422 unittest.expect(o.megaCycles, unittest.equals('foo')); |
1423 unittest.expect(o.method, unittest.equals('foo')); | 1423 unittest.expect(o.method, unittest.equals('foo')); |
1424 unittest.expect(o.moduleId, unittest.equals('foo')); | 1424 unittest.expect(o.moduleId, unittest.equals('foo')); |
1425 unittest.expect(o.nickname, unittest.equals('foo')); | 1425 unittest.expect(o.nickname, unittest.equals('foo')); |
1426 unittest.expect(o.pendingTime, unittest.equals('foo')); | 1426 unittest.expect(o.pendingTime, unittest.equals('foo')); |
1427 unittest.expect(o.referrer, unittest.equals('foo')); | 1427 unittest.expect(o.referrer, unittest.equals('foo')); |
1428 unittest.expect(o.requestId, unittest.equals('foo')); | 1428 unittest.expect(o.requestId, unittest.equals('foo')); |
1429 unittest.expect(o.resource, unittest.equals('foo')); | 1429 unittest.expect(o.resource, unittest.equals('foo')); |
1430 unittest.expect(o.responseSize, unittest.equals('foo')); | 1430 unittest.expect(o.responseSize, unittest.equals('foo')); |
1431 checkUnnamed2478(o.sourceReference); | 1431 checkUnnamed2469(o.sourceReference); |
1432 unittest.expect(o.startTime, unittest.equals('foo')); | 1432 unittest.expect(o.startTime, unittest.equals('foo')); |
1433 unittest.expect(o.status, unittest.equals(42)); | 1433 unittest.expect(o.status, unittest.equals(42)); |
1434 unittest.expect(o.taskName, unittest.equals('foo')); | 1434 unittest.expect(o.taskName, unittest.equals('foo')); |
1435 unittest.expect(o.taskQueueName, unittest.equals('foo')); | 1435 unittest.expect(o.taskQueueName, unittest.equals('foo')); |
1436 unittest.expect(o.traceId, unittest.equals('foo')); | 1436 unittest.expect(o.traceId, unittest.equals('foo')); |
1437 unittest.expect(o.urlMapEntry, unittest.equals('foo')); | 1437 unittest.expect(o.urlMapEntry, unittest.equals('foo')); |
1438 unittest.expect(o.userAgent, unittest.equals('foo')); | 1438 unittest.expect(o.userAgent, unittest.equals('foo')); |
1439 unittest.expect(o.versionId, unittest.equals('foo')); | 1439 unittest.expect(o.versionId, unittest.equals('foo')); |
1440 unittest.expect(o.wasLoadingRequest, unittest.isTrue); | 1440 unittest.expect(o.wasLoadingRequest, unittest.isTrue); |
1441 } | 1441 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1500 | 1500 |
1501 checkSourceReference(api.SourceReference o) { | 1501 checkSourceReference(api.SourceReference o) { |
1502 buildCounterSourceReference++; | 1502 buildCounterSourceReference++; |
1503 if (buildCounterSourceReference < 3) { | 1503 if (buildCounterSourceReference < 3) { |
1504 unittest.expect(o.repository, unittest.equals('foo')); | 1504 unittest.expect(o.repository, unittest.equals('foo')); |
1505 unittest.expect(o.revisionId, unittest.equals('foo')); | 1505 unittest.expect(o.revisionId, unittest.equals('foo')); |
1506 } | 1506 } |
1507 buildCounterSourceReference--; | 1507 buildCounterSourceReference--; |
1508 } | 1508 } |
1509 | 1509 |
1510 buildUnnamed2479() { | 1510 buildUnnamed2470() { |
1511 var o = new core.Map<core.String, core.Object>(); | 1511 var o = new core.Map<core.String, core.Object>(); |
1512 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1512 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1513 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1513 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1514 return o; | 1514 return o; |
1515 } | 1515 } |
1516 | 1516 |
1517 checkUnnamed2479(core.Map<core.String, core.Object> o) { | 1517 checkUnnamed2470(core.Map<core.String, core.Object> o) { |
1518 unittest.expect(o, unittest.hasLength(2)); | 1518 unittest.expect(o, unittest.hasLength(2)); |
1519 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 1519 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
1520 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 1520 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
1521 } | 1521 } |
1522 | 1522 |
1523 buildUnnamed2480() { | 1523 buildUnnamed2471() { |
1524 var o = new core.List<core.Map<core.String, core.Object>>(); | 1524 var o = new core.List<core.Map<core.String, core.Object>>(); |
1525 o.add(buildUnnamed2479()); | 1525 o.add(buildUnnamed2470()); |
1526 o.add(buildUnnamed2479()); | 1526 o.add(buildUnnamed2470()); |
1527 return o; | 1527 return o; |
1528 } | 1528 } |
1529 | 1529 |
1530 checkUnnamed2480(core.List<core.Map<core.String, core.Object>> o) { | 1530 checkUnnamed2471(core.List<core.Map<core.String, core.Object>> o) { |
1531 unittest.expect(o, unittest.hasLength(2)); | 1531 unittest.expect(o, unittest.hasLength(2)); |
1532 checkUnnamed2479(o[0]); | 1532 checkUnnamed2470(o[0]); |
1533 checkUnnamed2479(o[1]); | 1533 checkUnnamed2470(o[1]); |
1534 } | 1534 } |
1535 | 1535 |
1536 core.int buildCounterStatus = 0; | 1536 core.int buildCounterStatus = 0; |
1537 buildStatus() { | 1537 buildStatus() { |
1538 var o = new api.Status(); | 1538 var o = new api.Status(); |
1539 buildCounterStatus++; | 1539 buildCounterStatus++; |
1540 if (buildCounterStatus < 3) { | 1540 if (buildCounterStatus < 3) { |
1541 o.code = 42; | 1541 o.code = 42; |
1542 o.details = buildUnnamed2480(); | 1542 o.details = buildUnnamed2471(); |
1543 o.message = "foo"; | 1543 o.message = "foo"; |
1544 } | 1544 } |
1545 buildCounterStatus--; | 1545 buildCounterStatus--; |
1546 return o; | 1546 return o; |
1547 } | 1547 } |
1548 | 1548 |
1549 checkStatus(api.Status o) { | 1549 checkStatus(api.Status o) { |
1550 buildCounterStatus++; | 1550 buildCounterStatus++; |
1551 if (buildCounterStatus < 3) { | 1551 if (buildCounterStatus < 3) { |
1552 unittest.expect(o.code, unittest.equals(42)); | 1552 unittest.expect(o.code, unittest.equals(42)); |
1553 checkUnnamed2480(o.details); | 1553 checkUnnamed2471(o.details); |
1554 unittest.expect(o.message, unittest.equals('foo')); | 1554 unittest.expect(o.message, unittest.equals('foo')); |
1555 } | 1555 } |
1556 buildCounterStatus--; | 1556 buildCounterStatus--; |
1557 } | 1557 } |
1558 | 1558 |
1559 core.int buildCounterTable = 0; | 1559 core.int buildCounterTable = 0; |
1560 buildTable() { | 1560 buildTable() { |
1561 var o = new api.Table(); | 1561 var o = new api.Table(); |
1562 buildCounterTable++; | 1562 buildCounterTable++; |
1563 if (buildCounterTable < 3) { | 1563 if (buildCounterTable < 3) { |
(...skipping 16 matching lines...) Expand all Loading... |
1580 unittest.expect(o.expireTime, unittest.equals('foo')); | 1580 unittest.expect(o.expireTime, unittest.equals('foo')); |
1581 checkTableInfo(o.info); | 1581 checkTableInfo(o.info); |
1582 checkTableSchema(o.schema); | 1582 checkTableSchema(o.schema); |
1583 checkTableName(o.tableName); | 1583 checkTableName(o.tableName); |
1584 unittest.expect(o.truncateTime, unittest.equals('foo')); | 1584 unittest.expect(o.truncateTime, unittest.equals('foo')); |
1585 checkTableViewDefinition(o.view); | 1585 checkTableViewDefinition(o.view); |
1586 } | 1586 } |
1587 buildCounterTable--; | 1587 buildCounterTable--; |
1588 } | 1588 } |
1589 | 1589 |
1590 buildUnnamed2481() { | 1590 buildUnnamed2472() { |
1591 var o = new core.List<api.TableName>(); | 1591 var o = new core.List<api.TableName>(); |
1592 o.add(buildTableName()); | 1592 o.add(buildTableName()); |
1593 o.add(buildTableName()); | 1593 o.add(buildTableName()); |
1594 return o; | 1594 return o; |
1595 } | 1595 } |
1596 | 1596 |
1597 checkUnnamed2481(core.List<api.TableName> o) { | 1597 checkUnnamed2472(core.List<api.TableName> o) { |
1598 unittest.expect(o, unittest.hasLength(2)); | 1598 unittest.expect(o, unittest.hasLength(2)); |
1599 checkTableName(o[0]); | 1599 checkTableName(o[0]); |
1600 checkTableName(o[1]); | 1600 checkTableName(o[1]); |
1601 } | 1601 } |
1602 | 1602 |
1603 core.int buildCounterTableCopy = 0; | 1603 core.int buildCounterTableCopy = 0; |
1604 buildTableCopy() { | 1604 buildTableCopy() { |
1605 var o = new api.TableCopy(); | 1605 var o = new api.TableCopy(); |
1606 buildCounterTableCopy++; | 1606 buildCounterTableCopy++; |
1607 if (buildCounterTableCopy < 3) { | 1607 if (buildCounterTableCopy < 3) { |
1608 o.createDisposition = "foo"; | 1608 o.createDisposition = "foo"; |
1609 o.destinationTable = buildTableName(); | 1609 o.destinationTable = buildTableName(); |
1610 o.sourceTables = buildUnnamed2481(); | 1610 o.sourceTables = buildUnnamed2472(); |
1611 o.writeDisposition = "foo"; | 1611 o.writeDisposition = "foo"; |
1612 } | 1612 } |
1613 buildCounterTableCopy--; | 1613 buildCounterTableCopy--; |
1614 return o; | 1614 return o; |
1615 } | 1615 } |
1616 | 1616 |
1617 checkTableCopy(api.TableCopy o) { | 1617 checkTableCopy(api.TableCopy o) { |
1618 buildCounterTableCopy++; | 1618 buildCounterTableCopy++; |
1619 if (buildCounterTableCopy < 3) { | 1619 if (buildCounterTableCopy < 3) { |
1620 unittest.expect(o.createDisposition, unittest.equals('foo')); | 1620 unittest.expect(o.createDisposition, unittest.equals('foo')); |
1621 checkTableName(o.destinationTable); | 1621 checkTableName(o.destinationTable); |
1622 checkUnnamed2481(o.sourceTables); | 1622 checkUnnamed2472(o.sourceTables); |
1623 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 1623 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
1624 } | 1624 } |
1625 buildCounterTableCopy--; | 1625 buildCounterTableCopy--; |
1626 } | 1626 } |
1627 | 1627 |
1628 core.int buildCounterTableDataListRequest = 0; | 1628 core.int buildCounterTableDataListRequest = 0; |
1629 buildTableDataListRequest() { | 1629 buildTableDataListRequest() { |
1630 var o = new api.TableDataListRequest(); | 1630 var o = new api.TableDataListRequest(); |
1631 buildCounterTableDataListRequest++; | 1631 buildCounterTableDataListRequest++; |
1632 if (buildCounterTableDataListRequest < 3) { | 1632 if (buildCounterTableDataListRequest < 3) { |
1633 o.maxResults = 42; | 1633 o.maxResults = 42; |
1634 o.startRow = "foo"; | 1634 o.startRow = "foo"; |
1635 } | 1635 } |
1636 buildCounterTableDataListRequest--; | 1636 buildCounterTableDataListRequest--; |
1637 return o; | 1637 return o; |
1638 } | 1638 } |
1639 | 1639 |
1640 checkTableDataListRequest(api.TableDataListRequest o) { | 1640 checkTableDataListRequest(api.TableDataListRequest o) { |
1641 buildCounterTableDataListRequest++; | 1641 buildCounterTableDataListRequest++; |
1642 if (buildCounterTableDataListRequest < 3) { | 1642 if (buildCounterTableDataListRequest < 3) { |
1643 unittest.expect(o.maxResults, unittest.equals(42)); | 1643 unittest.expect(o.maxResults, unittest.equals(42)); |
1644 unittest.expect(o.startRow, unittest.equals('foo')); | 1644 unittest.expect(o.startRow, unittest.equals('foo')); |
1645 } | 1645 } |
1646 buildCounterTableDataListRequest--; | 1646 buildCounterTableDataListRequest--; |
1647 } | 1647 } |
1648 | 1648 |
1649 buildUnnamed2482() { | 1649 buildUnnamed2473() { |
1650 var o = new core.List<core.String>(); | 1650 var o = new core.List<core.String>(); |
1651 o.add("foo"); | 1651 o.add("foo"); |
1652 o.add("foo"); | 1652 o.add("foo"); |
1653 return o; | 1653 return o; |
1654 } | 1654 } |
1655 | 1655 |
1656 checkUnnamed2482(core.List<core.String> o) { | 1656 checkUnnamed2473(core.List<core.String> o) { |
1657 unittest.expect(o, unittest.hasLength(2)); | 1657 unittest.expect(o, unittest.hasLength(2)); |
1658 unittest.expect(o[0], unittest.equals('foo')); | 1658 unittest.expect(o[0], unittest.equals('foo')); |
1659 unittest.expect(o[1], unittest.equals('foo')); | 1659 unittest.expect(o[1], unittest.equals('foo')); |
1660 } | 1660 } |
1661 | 1661 |
1662 core.int buildCounterTableDefinition = 0; | 1662 core.int buildCounterTableDefinition = 0; |
1663 buildTableDefinition() { | 1663 buildTableDefinition() { |
1664 var o = new api.TableDefinition(); | 1664 var o = new api.TableDefinition(); |
1665 buildCounterTableDefinition++; | 1665 buildCounterTableDefinition++; |
1666 if (buildCounterTableDefinition < 3) { | 1666 if (buildCounterTableDefinition < 3) { |
1667 o.name = "foo"; | 1667 o.name = "foo"; |
1668 o.sourceUris = buildUnnamed2482(); | 1668 o.sourceUris = buildUnnamed2473(); |
1669 } | 1669 } |
1670 buildCounterTableDefinition--; | 1670 buildCounterTableDefinition--; |
1671 return o; | 1671 return o; |
1672 } | 1672 } |
1673 | 1673 |
1674 checkTableDefinition(api.TableDefinition o) { | 1674 checkTableDefinition(api.TableDefinition o) { |
1675 buildCounterTableDefinition++; | 1675 buildCounterTableDefinition++; |
1676 if (buildCounterTableDefinition < 3) { | 1676 if (buildCounterTableDefinition < 3) { |
1677 unittest.expect(o.name, unittest.equals('foo')); | 1677 unittest.expect(o.name, unittest.equals('foo')); |
1678 checkUnnamed2482(o.sourceUris); | 1678 checkUnnamed2473(o.sourceUris); |
1679 } | 1679 } |
1680 buildCounterTableDefinition--; | 1680 buildCounterTableDefinition--; |
1681 } | 1681 } |
1682 | 1682 |
1683 core.int buildCounterTableInfo = 0; | 1683 core.int buildCounterTableInfo = 0; |
1684 buildTableInfo() { | 1684 buildTableInfo() { |
1685 var o = new api.TableInfo(); | 1685 var o = new api.TableInfo(); |
1686 buildCounterTableInfo++; | 1686 buildCounterTableInfo++; |
1687 if (buildCounterTableInfo < 3) { | 1687 if (buildCounterTableInfo < 3) { |
1688 o.description = "foo"; | 1688 o.description = "foo"; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1755 checkTableName(api.TableName o) { | 1755 checkTableName(api.TableName o) { |
1756 buildCounterTableName++; | 1756 buildCounterTableName++; |
1757 if (buildCounterTableName < 3) { | 1757 if (buildCounterTableName < 3) { |
1758 unittest.expect(o.datasetId, unittest.equals('foo')); | 1758 unittest.expect(o.datasetId, unittest.equals('foo')); |
1759 unittest.expect(o.projectId, unittest.equals('foo')); | 1759 unittest.expect(o.projectId, unittest.equals('foo')); |
1760 unittest.expect(o.tableId, unittest.equals('foo')); | 1760 unittest.expect(o.tableId, unittest.equals('foo')); |
1761 } | 1761 } |
1762 buildCounterTableName--; | 1762 buildCounterTableName--; |
1763 } | 1763 } |
1764 | 1764 |
1765 buildUnnamed2483() { | 1765 buildUnnamed2474() { |
1766 var o = new core.List<api.FieldSchema>(); | 1766 var o = new core.List<api.FieldSchema>(); |
1767 o.add(buildFieldSchema()); | 1767 o.add(buildFieldSchema()); |
1768 o.add(buildFieldSchema()); | 1768 o.add(buildFieldSchema()); |
1769 return o; | 1769 return o; |
1770 } | 1770 } |
1771 | 1771 |
1772 checkUnnamed2483(core.List<api.FieldSchema> o) { | 1772 checkUnnamed2474(core.List<api.FieldSchema> o) { |
1773 unittest.expect(o, unittest.hasLength(2)); | 1773 unittest.expect(o, unittest.hasLength(2)); |
1774 checkFieldSchema(o[0]); | 1774 checkFieldSchema(o[0]); |
1775 checkFieldSchema(o[1]); | 1775 checkFieldSchema(o[1]); |
1776 } | 1776 } |
1777 | 1777 |
1778 core.int buildCounterTableSchema = 0; | 1778 core.int buildCounterTableSchema = 0; |
1779 buildTableSchema() { | 1779 buildTableSchema() { |
1780 var o = new api.TableSchema(); | 1780 var o = new api.TableSchema(); |
1781 buildCounterTableSchema++; | 1781 buildCounterTableSchema++; |
1782 if (buildCounterTableSchema < 3) { | 1782 if (buildCounterTableSchema < 3) { |
1783 o.fields = buildUnnamed2483(); | 1783 o.fields = buildUnnamed2474(); |
1784 } | 1784 } |
1785 buildCounterTableSchema--; | 1785 buildCounterTableSchema--; |
1786 return o; | 1786 return o; |
1787 } | 1787 } |
1788 | 1788 |
1789 checkTableSchema(api.TableSchema o) { | 1789 checkTableSchema(api.TableSchema o) { |
1790 buildCounterTableSchema++; | 1790 buildCounterTableSchema++; |
1791 if (buildCounterTableSchema < 3) { | 1791 if (buildCounterTableSchema < 3) { |
1792 checkUnnamed2483(o.fields); | 1792 checkUnnamed2474(o.fields); |
1793 } | 1793 } |
1794 buildCounterTableSchema--; | 1794 buildCounterTableSchema--; |
1795 } | 1795 } |
1796 | 1796 |
1797 core.int buildCounterTableUpdateRequest = 0; | 1797 core.int buildCounterTableUpdateRequest = 0; |
1798 buildTableUpdateRequest() { | 1798 buildTableUpdateRequest() { |
1799 var o = new api.TableUpdateRequest(); | 1799 var o = new api.TableUpdateRequest(); |
1800 buildCounterTableUpdateRequest++; | 1800 buildCounterTableUpdateRequest++; |
1801 if (buildCounterTableUpdateRequest < 3) { | 1801 if (buildCounterTableUpdateRequest < 3) { |
1802 o.resource = buildTable(); | 1802 o.resource = buildTable(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1844 } | 1844 } |
1845 | 1845 |
1846 checkTableViewDefinition(api.TableViewDefinition o) { | 1846 checkTableViewDefinition(api.TableViewDefinition o) { |
1847 buildCounterTableViewDefinition++; | 1847 buildCounterTableViewDefinition++; |
1848 if (buildCounterTableViewDefinition < 3) { | 1848 if (buildCounterTableViewDefinition < 3) { |
1849 unittest.expect(o.query, unittest.equals('foo')); | 1849 unittest.expect(o.query, unittest.equals('foo')); |
1850 } | 1850 } |
1851 buildCounterTableViewDefinition--; | 1851 buildCounterTableViewDefinition--; |
1852 } | 1852 } |
1853 | 1853 |
1854 buildUnnamed2484() { | 1854 buildUnnamed2475() { |
1855 var o = new core.Map<core.String, core.String>(); | 1855 var o = new core.Map<core.String, core.String>(); |
1856 o["x"] = "foo"; | 1856 o["x"] = "foo"; |
1857 o["y"] = "foo"; | 1857 o["y"] = "foo"; |
1858 return o; | 1858 return o; |
1859 } | 1859 } |
1860 | 1860 |
1861 checkUnnamed2484(core.Map<core.String, core.String> o) { | 1861 checkUnnamed2475(core.Map<core.String, core.String> o) { |
1862 unittest.expect(o, unittest.hasLength(2)); | 1862 unittest.expect(o, unittest.hasLength(2)); |
1863 unittest.expect(o["x"], unittest.equals('foo')); | 1863 unittest.expect(o["x"], unittest.equals('foo')); |
1864 unittest.expect(o["y"], unittest.equals('foo')); | 1864 unittest.expect(o["y"], unittest.equals('foo')); |
1865 } | 1865 } |
1866 | 1866 |
1867 buildUnnamed2485() { | 1867 buildUnnamed2476() { |
1868 var o = new core.List<api.LogEntry>(); | 1868 var o = new core.List<api.LogEntry>(); |
1869 o.add(buildLogEntry()); | 1869 o.add(buildLogEntry()); |
1870 o.add(buildLogEntry()); | 1870 o.add(buildLogEntry()); |
1871 return o; | 1871 return o; |
1872 } | 1872 } |
1873 | 1873 |
1874 checkUnnamed2485(core.List<api.LogEntry> o) { | 1874 checkUnnamed2476(core.List<api.LogEntry> o) { |
1875 unittest.expect(o, unittest.hasLength(2)); | 1875 unittest.expect(o, unittest.hasLength(2)); |
1876 checkLogEntry(o[0]); | 1876 checkLogEntry(o[0]); |
1877 checkLogEntry(o[1]); | 1877 checkLogEntry(o[1]); |
1878 } | 1878 } |
1879 | 1879 |
1880 core.int buildCounterWriteLogEntriesRequest = 0; | 1880 core.int buildCounterWriteLogEntriesRequest = 0; |
1881 buildWriteLogEntriesRequest() { | 1881 buildWriteLogEntriesRequest() { |
1882 var o = new api.WriteLogEntriesRequest(); | 1882 var o = new api.WriteLogEntriesRequest(); |
1883 buildCounterWriteLogEntriesRequest++; | 1883 buildCounterWriteLogEntriesRequest++; |
1884 if (buildCounterWriteLogEntriesRequest < 3) { | 1884 if (buildCounterWriteLogEntriesRequest < 3) { |
1885 o.commonLabels = buildUnnamed2484(); | 1885 o.commonLabels = buildUnnamed2475(); |
1886 o.entries = buildUnnamed2485(); | 1886 o.entries = buildUnnamed2476(); |
1887 } | 1887 } |
1888 buildCounterWriteLogEntriesRequest--; | 1888 buildCounterWriteLogEntriesRequest--; |
1889 return o; | 1889 return o; |
1890 } | 1890 } |
1891 | 1891 |
1892 checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { | 1892 checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { |
1893 buildCounterWriteLogEntriesRequest++; | 1893 buildCounterWriteLogEntriesRequest++; |
1894 if (buildCounterWriteLogEntriesRequest < 3) { | 1894 if (buildCounterWriteLogEntriesRequest < 3) { |
1895 checkUnnamed2484(o.commonLabels); | 1895 checkUnnamed2475(o.commonLabels); |
1896 checkUnnamed2485(o.entries); | 1896 checkUnnamed2476(o.entries); |
1897 } | 1897 } |
1898 buildCounterWriteLogEntriesRequest--; | 1898 buildCounterWriteLogEntriesRequest--; |
1899 } | 1899 } |
1900 | 1900 |
1901 core.int buildCounterWriteLogEntriesResponse = 0; | 1901 core.int buildCounterWriteLogEntriesResponse = 0; |
1902 buildWriteLogEntriesResponse() { | 1902 buildWriteLogEntriesResponse() { |
1903 var o = new api.WriteLogEntriesResponse(); | 1903 var o = new api.WriteLogEntriesResponse(); |
1904 buildCounterWriteLogEntriesResponse++; | 1904 buildCounterWriteLogEntriesResponse++; |
1905 if (buildCounterWriteLogEntriesResponse < 3) { | 1905 if (buildCounterWriteLogEntriesResponse < 3) { |
1906 } | 1906 } |
(...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3724 res.update(arg_request, arg_projectsId, arg_sinksId).then(unittest.expectA
sync(((api.LogSink response) { | 3724 res.update(arg_request, arg_projectsId, arg_sinksId).then(unittest.expectA
sync(((api.LogSink response) { |
3725 checkLogSink(response); | 3725 checkLogSink(response); |
3726 }))); | 3726 }))); |
3727 }); | 3727 }); |
3728 | 3728 |
3729 }); | 3729 }); |
3730 | 3730 |
3731 | 3731 |
3732 } | 3732 } |
3733 | 3733 |
OLD | NEW |