| OLD | NEW |
| 1 library googleapis_beta.container.v1beta1.test; | 1 library googleapis_beta.container.v1beta1.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 checkCreateClusterRequest(api.CreateClusterRequest o) { | 75 checkCreateClusterRequest(api.CreateClusterRequest o) { |
| 76 buildCounterCreateClusterRequest++; | 76 buildCounterCreateClusterRequest++; |
| 77 if (buildCounterCreateClusterRequest < 3) { | 77 if (buildCounterCreateClusterRequest < 3) { |
| 78 checkCluster(o.cluster); | 78 checkCluster(o.cluster); |
| 79 } | 79 } |
| 80 buildCounterCreateClusterRequest--; | 80 buildCounterCreateClusterRequest--; |
| 81 } | 81 } |
| 82 | 82 |
| 83 buildUnnamed1179() { | 83 buildUnnamed1233() { |
| 84 var o = new core.List<api.Cluster>(); | 84 var o = new core.List<api.Cluster>(); |
| 85 o.add(buildCluster()); | 85 o.add(buildCluster()); |
| 86 o.add(buildCluster()); | 86 o.add(buildCluster()); |
| 87 return o; | 87 return o; |
| 88 } | 88 } |
| 89 | 89 |
| 90 checkUnnamed1179(core.List<api.Cluster> o) { | 90 checkUnnamed1233(core.List<api.Cluster> o) { |
| 91 unittest.expect(o, unittest.hasLength(2)); | 91 unittest.expect(o, unittest.hasLength(2)); |
| 92 checkCluster(o[0]); | 92 checkCluster(o[0]); |
| 93 checkCluster(o[1]); | 93 checkCluster(o[1]); |
| 94 } | 94 } |
| 95 | 95 |
| 96 core.int buildCounterListAggregatedClustersResponse = 0; | 96 core.int buildCounterListAggregatedClustersResponse = 0; |
| 97 buildListAggregatedClustersResponse() { | 97 buildListAggregatedClustersResponse() { |
| 98 var o = new api.ListAggregatedClustersResponse(); | 98 var o = new api.ListAggregatedClustersResponse(); |
| 99 buildCounterListAggregatedClustersResponse++; | 99 buildCounterListAggregatedClustersResponse++; |
| 100 if (buildCounterListAggregatedClustersResponse < 3) { | 100 if (buildCounterListAggregatedClustersResponse < 3) { |
| 101 o.clusters = buildUnnamed1179(); | 101 o.clusters = buildUnnamed1233(); |
| 102 } | 102 } |
| 103 buildCounterListAggregatedClustersResponse--; | 103 buildCounterListAggregatedClustersResponse--; |
| 104 return o; | 104 return o; |
| 105 } | 105 } |
| 106 | 106 |
| 107 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { | 107 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { |
| 108 buildCounterListAggregatedClustersResponse++; | 108 buildCounterListAggregatedClustersResponse++; |
| 109 if (buildCounterListAggregatedClustersResponse < 3) { | 109 if (buildCounterListAggregatedClustersResponse < 3) { |
| 110 checkUnnamed1179(o.clusters); | 110 checkUnnamed1233(o.clusters); |
| 111 } | 111 } |
| 112 buildCounterListAggregatedClustersResponse--; | 112 buildCounterListAggregatedClustersResponse--; |
| 113 } | 113 } |
| 114 | 114 |
| 115 buildUnnamed1180() { | 115 buildUnnamed1234() { |
| 116 var o = new core.List<api.Operation>(); | 116 var o = new core.List<api.Operation>(); |
| 117 o.add(buildOperation()); | 117 o.add(buildOperation()); |
| 118 o.add(buildOperation()); | 118 o.add(buildOperation()); |
| 119 return o; | 119 return o; |
| 120 } | 120 } |
| 121 | 121 |
| 122 checkUnnamed1180(core.List<api.Operation> o) { | 122 checkUnnamed1234(core.List<api.Operation> o) { |
| 123 unittest.expect(o, unittest.hasLength(2)); | 123 unittest.expect(o, unittest.hasLength(2)); |
| 124 checkOperation(o[0]); | 124 checkOperation(o[0]); |
| 125 checkOperation(o[1]); | 125 checkOperation(o[1]); |
| 126 } | 126 } |
| 127 | 127 |
| 128 core.int buildCounterListAggregatedOperationsResponse = 0; | 128 core.int buildCounterListAggregatedOperationsResponse = 0; |
| 129 buildListAggregatedOperationsResponse() { | 129 buildListAggregatedOperationsResponse() { |
| 130 var o = new api.ListAggregatedOperationsResponse(); | 130 var o = new api.ListAggregatedOperationsResponse(); |
| 131 buildCounterListAggregatedOperationsResponse++; | 131 buildCounterListAggregatedOperationsResponse++; |
| 132 if (buildCounterListAggregatedOperationsResponse < 3) { | 132 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 133 o.operations = buildUnnamed1180(); | 133 o.operations = buildUnnamed1234(); |
| 134 } | 134 } |
| 135 buildCounterListAggregatedOperationsResponse--; | 135 buildCounterListAggregatedOperationsResponse--; |
| 136 return o; | 136 return o; |
| 137 } | 137 } |
| 138 | 138 |
| 139 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { | 139 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { |
| 140 buildCounterListAggregatedOperationsResponse++; | 140 buildCounterListAggregatedOperationsResponse++; |
| 141 if (buildCounterListAggregatedOperationsResponse < 3) { | 141 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 142 checkUnnamed1180(o.operations); | 142 checkUnnamed1234(o.operations); |
| 143 } | 143 } |
| 144 buildCounterListAggregatedOperationsResponse--; | 144 buildCounterListAggregatedOperationsResponse--; |
| 145 } | 145 } |
| 146 | 146 |
| 147 buildUnnamed1181() { | 147 buildUnnamed1235() { |
| 148 var o = new core.List<api.Cluster>(); | 148 var o = new core.List<api.Cluster>(); |
| 149 o.add(buildCluster()); | 149 o.add(buildCluster()); |
| 150 o.add(buildCluster()); | 150 o.add(buildCluster()); |
| 151 return o; | 151 return o; |
| 152 } | 152 } |
| 153 | 153 |
| 154 checkUnnamed1181(core.List<api.Cluster> o) { | 154 checkUnnamed1235(core.List<api.Cluster> o) { |
| 155 unittest.expect(o, unittest.hasLength(2)); | 155 unittest.expect(o, unittest.hasLength(2)); |
| 156 checkCluster(o[0]); | 156 checkCluster(o[0]); |
| 157 checkCluster(o[1]); | 157 checkCluster(o[1]); |
| 158 } | 158 } |
| 159 | 159 |
| 160 core.int buildCounterListClustersResponse = 0; | 160 core.int buildCounterListClustersResponse = 0; |
| 161 buildListClustersResponse() { | 161 buildListClustersResponse() { |
| 162 var o = new api.ListClustersResponse(); | 162 var o = new api.ListClustersResponse(); |
| 163 buildCounterListClustersResponse++; | 163 buildCounterListClustersResponse++; |
| 164 if (buildCounterListClustersResponse < 3) { | 164 if (buildCounterListClustersResponse < 3) { |
| 165 o.clusters = buildUnnamed1181(); | 165 o.clusters = buildUnnamed1235(); |
| 166 } | 166 } |
| 167 buildCounterListClustersResponse--; | 167 buildCounterListClustersResponse--; |
| 168 return o; | 168 return o; |
| 169 } | 169 } |
| 170 | 170 |
| 171 checkListClustersResponse(api.ListClustersResponse o) { | 171 checkListClustersResponse(api.ListClustersResponse o) { |
| 172 buildCounterListClustersResponse++; | 172 buildCounterListClustersResponse++; |
| 173 if (buildCounterListClustersResponse < 3) { | 173 if (buildCounterListClustersResponse < 3) { |
| 174 checkUnnamed1181(o.clusters); | 174 checkUnnamed1235(o.clusters); |
| 175 } | 175 } |
| 176 buildCounterListClustersResponse--; | 176 buildCounterListClustersResponse--; |
| 177 } | 177 } |
| 178 | 178 |
| 179 buildUnnamed1182() { | 179 buildUnnamed1236() { |
| 180 var o = new core.List<api.Operation>(); | 180 var o = new core.List<api.Operation>(); |
| 181 o.add(buildOperation()); | 181 o.add(buildOperation()); |
| 182 o.add(buildOperation()); | 182 o.add(buildOperation()); |
| 183 return o; | 183 return o; |
| 184 } | 184 } |
| 185 | 185 |
| 186 checkUnnamed1182(core.List<api.Operation> o) { | 186 checkUnnamed1236(core.List<api.Operation> o) { |
| 187 unittest.expect(o, unittest.hasLength(2)); | 187 unittest.expect(o, unittest.hasLength(2)); |
| 188 checkOperation(o[0]); | 188 checkOperation(o[0]); |
| 189 checkOperation(o[1]); | 189 checkOperation(o[1]); |
| 190 } | 190 } |
| 191 | 191 |
| 192 core.int buildCounterListOperationsResponse = 0; | 192 core.int buildCounterListOperationsResponse = 0; |
| 193 buildListOperationsResponse() { | 193 buildListOperationsResponse() { |
| 194 var o = new api.ListOperationsResponse(); | 194 var o = new api.ListOperationsResponse(); |
| 195 buildCounterListOperationsResponse++; | 195 buildCounterListOperationsResponse++; |
| 196 if (buildCounterListOperationsResponse < 3) { | 196 if (buildCounterListOperationsResponse < 3) { |
| 197 o.operations = buildUnnamed1182(); | 197 o.operations = buildUnnamed1236(); |
| 198 } | 198 } |
| 199 buildCounterListOperationsResponse--; | 199 buildCounterListOperationsResponse--; |
| 200 return o; | 200 return o; |
| 201 } | 201 } |
| 202 | 202 |
| 203 checkListOperationsResponse(api.ListOperationsResponse o) { | 203 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 204 buildCounterListOperationsResponse++; | 204 buildCounterListOperationsResponse++; |
| 205 if (buildCounterListOperationsResponse < 3) { | 205 if (buildCounterListOperationsResponse < 3) { |
| 206 checkUnnamed1182(o.operations); | 206 checkUnnamed1236(o.operations); |
| 207 } | 207 } |
| 208 buildCounterListOperationsResponse--; | 208 buildCounterListOperationsResponse--; |
| 209 } | 209 } |
| 210 | 210 |
| 211 core.int buildCounterMasterAuth = 0; | 211 core.int buildCounterMasterAuth = 0; |
| 212 buildMasterAuth() { | 212 buildMasterAuth() { |
| 213 var o = new api.MasterAuth(); | 213 var o = new api.MasterAuth(); |
| 214 buildCounterMasterAuth++; | 214 buildCounterMasterAuth++; |
| 215 if (buildCounterMasterAuth < 3) { | 215 if (buildCounterMasterAuth < 3) { |
| 216 o.password = "foo"; | 216 o.password = "foo"; |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 res.list(arg_projectId, arg_zoneId).then(unittest.expectAsync(((api.ListOp
erationsResponse response) { | 722 res.list(arg_projectId, arg_zoneId).then(unittest.expectAsync(((api.ListOp
erationsResponse response) { |
| 723 checkListOperationsResponse(response); | 723 checkListOperationsResponse(response); |
| 724 }))); | 724 }))); |
| 725 }); | 725 }); |
| 726 | 726 |
| 727 }); | 727 }); |
| 728 | 728 |
| 729 | 729 |
| 730 } | 730 } |
| 731 | 731 |
| OLD | NEW |