| OLD | NEW |
| 1 library googleapis.firebaserules.v1.test; | 1 library googleapis.firebaserules.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 checkIssue(api.Issue o) { | 107 checkIssue(api.Issue o) { |
| 108 buildCounterIssue++; | 108 buildCounterIssue++; |
| 109 if (buildCounterIssue < 3) { | 109 if (buildCounterIssue < 3) { |
| 110 unittest.expect(o.description, unittest.equals('foo')); | 110 unittest.expect(o.description, unittest.equals('foo')); |
| 111 unittest.expect(o.severity, unittest.equals('foo')); | 111 unittest.expect(o.severity, unittest.equals('foo')); |
| 112 checkSourcePosition(o.sourcePosition); | 112 checkSourcePosition(o.sourcePosition); |
| 113 } | 113 } |
| 114 buildCounterIssue--; | 114 buildCounterIssue--; |
| 115 } | 115 } |
| 116 | 116 |
| 117 buildUnnamed3454() { | 117 buildUnnamed3268() { |
| 118 var o = new core.List<api.Release>(); | 118 var o = new core.List<api.Release>(); |
| 119 o.add(buildRelease()); | 119 o.add(buildRelease()); |
| 120 o.add(buildRelease()); | 120 o.add(buildRelease()); |
| 121 return o; | 121 return o; |
| 122 } | 122 } |
| 123 | 123 |
| 124 checkUnnamed3454(core.List<api.Release> o) { | 124 checkUnnamed3268(core.List<api.Release> o) { |
| 125 unittest.expect(o, unittest.hasLength(2)); | 125 unittest.expect(o, unittest.hasLength(2)); |
| 126 checkRelease(o[0]); | 126 checkRelease(o[0]); |
| 127 checkRelease(o[1]); | 127 checkRelease(o[1]); |
| 128 } | 128 } |
| 129 | 129 |
| 130 core.int buildCounterListReleasesResponse = 0; | 130 core.int buildCounterListReleasesResponse = 0; |
| 131 buildListReleasesResponse() { | 131 buildListReleasesResponse() { |
| 132 var o = new api.ListReleasesResponse(); | 132 var o = new api.ListReleasesResponse(); |
| 133 buildCounterListReleasesResponse++; | 133 buildCounterListReleasesResponse++; |
| 134 if (buildCounterListReleasesResponse < 3) { | 134 if (buildCounterListReleasesResponse < 3) { |
| 135 o.nextPageToken = "foo"; | 135 o.nextPageToken = "foo"; |
| 136 o.releases = buildUnnamed3454(); | 136 o.releases = buildUnnamed3268(); |
| 137 } | 137 } |
| 138 buildCounterListReleasesResponse--; | 138 buildCounterListReleasesResponse--; |
| 139 return o; | 139 return o; |
| 140 } | 140 } |
| 141 | 141 |
| 142 checkListReleasesResponse(api.ListReleasesResponse o) { | 142 checkListReleasesResponse(api.ListReleasesResponse o) { |
| 143 buildCounterListReleasesResponse++; | 143 buildCounterListReleasesResponse++; |
| 144 if (buildCounterListReleasesResponse < 3) { | 144 if (buildCounterListReleasesResponse < 3) { |
| 145 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 145 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 146 checkUnnamed3454(o.releases); | 146 checkUnnamed3268(o.releases); |
| 147 } | 147 } |
| 148 buildCounterListReleasesResponse--; | 148 buildCounterListReleasesResponse--; |
| 149 } | 149 } |
| 150 | 150 |
| 151 buildUnnamed3455() { | 151 buildUnnamed3269() { |
| 152 var o = new core.List<api.Ruleset>(); | 152 var o = new core.List<api.Ruleset>(); |
| 153 o.add(buildRuleset()); | 153 o.add(buildRuleset()); |
| 154 o.add(buildRuleset()); | 154 o.add(buildRuleset()); |
| 155 return o; | 155 return o; |
| 156 } | 156 } |
| 157 | 157 |
| 158 checkUnnamed3455(core.List<api.Ruleset> o) { | 158 checkUnnamed3269(core.List<api.Ruleset> o) { |
| 159 unittest.expect(o, unittest.hasLength(2)); | 159 unittest.expect(o, unittest.hasLength(2)); |
| 160 checkRuleset(o[0]); | 160 checkRuleset(o[0]); |
| 161 checkRuleset(o[1]); | 161 checkRuleset(o[1]); |
| 162 } | 162 } |
| 163 | 163 |
| 164 core.int buildCounterListRulesetsResponse = 0; | 164 core.int buildCounterListRulesetsResponse = 0; |
| 165 buildListRulesetsResponse() { | 165 buildListRulesetsResponse() { |
| 166 var o = new api.ListRulesetsResponse(); | 166 var o = new api.ListRulesetsResponse(); |
| 167 buildCounterListRulesetsResponse++; | 167 buildCounterListRulesetsResponse++; |
| 168 if (buildCounterListRulesetsResponse < 3) { | 168 if (buildCounterListRulesetsResponse < 3) { |
| 169 o.nextPageToken = "foo"; | 169 o.nextPageToken = "foo"; |
| 170 o.rulesets = buildUnnamed3455(); | 170 o.rulesets = buildUnnamed3269(); |
| 171 } | 171 } |
| 172 buildCounterListRulesetsResponse--; | 172 buildCounterListRulesetsResponse--; |
| 173 return o; | 173 return o; |
| 174 } | 174 } |
| 175 | 175 |
| 176 checkListRulesetsResponse(api.ListRulesetsResponse o) { | 176 checkListRulesetsResponse(api.ListRulesetsResponse o) { |
| 177 buildCounterListRulesetsResponse++; | 177 buildCounterListRulesetsResponse++; |
| 178 if (buildCounterListRulesetsResponse < 3) { | 178 if (buildCounterListRulesetsResponse < 3) { |
| 179 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 179 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 180 checkUnnamed3455(o.rulesets); | 180 checkUnnamed3269(o.rulesets); |
| 181 } | 181 } |
| 182 buildCounterListRulesetsResponse--; | 182 buildCounterListRulesetsResponse--; |
| 183 } | 183 } |
| 184 | 184 |
| 185 core.int buildCounterRelease = 0; | 185 core.int buildCounterRelease = 0; |
| 186 buildRelease() { | 186 buildRelease() { |
| 187 var o = new api.Release(); | 187 var o = new api.Release(); |
| 188 buildCounterRelease++; | 188 buildCounterRelease++; |
| 189 if (buildCounterRelease < 3) { | 189 if (buildCounterRelease < 3) { |
| 190 o.createTime = "foo"; | 190 o.createTime = "foo"; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 checkRuleset(api.Ruleset o) { | 223 checkRuleset(api.Ruleset o) { |
| 224 buildCounterRuleset++; | 224 buildCounterRuleset++; |
| 225 if (buildCounterRuleset < 3) { | 225 if (buildCounterRuleset < 3) { |
| 226 unittest.expect(o.createTime, unittest.equals('foo')); | 226 unittest.expect(o.createTime, unittest.equals('foo')); |
| 227 unittest.expect(o.name, unittest.equals('foo')); | 227 unittest.expect(o.name, unittest.equals('foo')); |
| 228 checkSource(o.source); | 228 checkSource(o.source); |
| 229 } | 229 } |
| 230 buildCounterRuleset--; | 230 buildCounterRuleset--; |
| 231 } | 231 } |
| 232 | 232 |
| 233 buildUnnamed3456() { | 233 buildUnnamed3270() { |
| 234 var o = new core.List<api.File>(); | 234 var o = new core.List<api.File>(); |
| 235 o.add(buildFile()); | 235 o.add(buildFile()); |
| 236 o.add(buildFile()); | 236 o.add(buildFile()); |
| 237 return o; | 237 return o; |
| 238 } | 238 } |
| 239 | 239 |
| 240 checkUnnamed3456(core.List<api.File> o) { | 240 checkUnnamed3270(core.List<api.File> o) { |
| 241 unittest.expect(o, unittest.hasLength(2)); | 241 unittest.expect(o, unittest.hasLength(2)); |
| 242 checkFile(o[0]); | 242 checkFile(o[0]); |
| 243 checkFile(o[1]); | 243 checkFile(o[1]); |
| 244 } | 244 } |
| 245 | 245 |
| 246 core.int buildCounterSource = 0; | 246 core.int buildCounterSource = 0; |
| 247 buildSource() { | 247 buildSource() { |
| 248 var o = new api.Source(); | 248 var o = new api.Source(); |
| 249 buildCounterSource++; | 249 buildCounterSource++; |
| 250 if (buildCounterSource < 3) { | 250 if (buildCounterSource < 3) { |
| 251 o.files = buildUnnamed3456(); | 251 o.files = buildUnnamed3270(); |
| 252 } | 252 } |
| 253 buildCounterSource--; | 253 buildCounterSource--; |
| 254 return o; | 254 return o; |
| 255 } | 255 } |
| 256 | 256 |
| 257 checkSource(api.Source o) { | 257 checkSource(api.Source o) { |
| 258 buildCounterSource++; | 258 buildCounterSource++; |
| 259 if (buildCounterSource < 3) { | 259 if (buildCounterSource < 3) { |
| 260 checkUnnamed3456(o.files); | 260 checkUnnamed3270(o.files); |
| 261 } | 261 } |
| 262 buildCounterSource--; | 262 buildCounterSource--; |
| 263 } | 263 } |
| 264 | 264 |
| 265 core.int buildCounterSourcePosition = 0; | 265 core.int buildCounterSourcePosition = 0; |
| 266 buildSourcePosition() { | 266 buildSourcePosition() { |
| 267 var o = new api.SourcePosition(); | 267 var o = new api.SourcePosition(); |
| 268 buildCounterSourcePosition++; | 268 buildCounterSourcePosition++; |
| 269 if (buildCounterSourcePosition < 3) { | 269 if (buildCounterSourcePosition < 3) { |
| 270 o.column = 42; | 270 o.column = 42; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 297 } | 297 } |
| 298 | 298 |
| 299 checkTestRulesetRequest(api.TestRulesetRequest o) { | 299 checkTestRulesetRequest(api.TestRulesetRequest o) { |
| 300 buildCounterTestRulesetRequest++; | 300 buildCounterTestRulesetRequest++; |
| 301 if (buildCounterTestRulesetRequest < 3) { | 301 if (buildCounterTestRulesetRequest < 3) { |
| 302 checkSource(o.source); | 302 checkSource(o.source); |
| 303 } | 303 } |
| 304 buildCounterTestRulesetRequest--; | 304 buildCounterTestRulesetRequest--; |
| 305 } | 305 } |
| 306 | 306 |
| 307 buildUnnamed3457() { | 307 buildUnnamed3271() { |
| 308 var o = new core.List<api.Issue>(); | 308 var o = new core.List<api.Issue>(); |
| 309 o.add(buildIssue()); | 309 o.add(buildIssue()); |
| 310 o.add(buildIssue()); | 310 o.add(buildIssue()); |
| 311 return o; | 311 return o; |
| 312 } | 312 } |
| 313 | 313 |
| 314 checkUnnamed3457(core.List<api.Issue> o) { | 314 checkUnnamed3271(core.List<api.Issue> o) { |
| 315 unittest.expect(o, unittest.hasLength(2)); | 315 unittest.expect(o, unittest.hasLength(2)); |
| 316 checkIssue(o[0]); | 316 checkIssue(o[0]); |
| 317 checkIssue(o[1]); | 317 checkIssue(o[1]); |
| 318 } | 318 } |
| 319 | 319 |
| 320 core.int buildCounterTestRulesetResponse = 0; | 320 core.int buildCounterTestRulesetResponse = 0; |
| 321 buildTestRulesetResponse() { | 321 buildTestRulesetResponse() { |
| 322 var o = new api.TestRulesetResponse(); | 322 var o = new api.TestRulesetResponse(); |
| 323 buildCounterTestRulesetResponse++; | 323 buildCounterTestRulesetResponse++; |
| 324 if (buildCounterTestRulesetResponse < 3) { | 324 if (buildCounterTestRulesetResponse < 3) { |
| 325 o.issues = buildUnnamed3457(); | 325 o.issues = buildUnnamed3271(); |
| 326 } | 326 } |
| 327 buildCounterTestRulesetResponse--; | 327 buildCounterTestRulesetResponse--; |
| 328 return o; | 328 return o; |
| 329 } | 329 } |
| 330 | 330 |
| 331 checkTestRulesetResponse(api.TestRulesetResponse o) { | 331 checkTestRulesetResponse(api.TestRulesetResponse o) { |
| 332 buildCounterTestRulesetResponse++; | 332 buildCounterTestRulesetResponse++; |
| 333 if (buildCounterTestRulesetResponse < 3) { | 333 if (buildCounterTestRulesetResponse < 3) { |
| 334 checkUnnamed3457(o.issues); | 334 checkUnnamed3271(o.issues); |
| 335 } | 335 } |
| 336 buildCounterTestRulesetResponse--; | 336 buildCounterTestRulesetResponse--; |
| 337 } | 337 } |
| 338 | 338 |
| 339 | 339 |
| 340 main() { | 340 main() { |
| 341 unittest.group("obj-schema-Empty", () { | 341 unittest.group("obj-schema-Empty", () { |
| 342 unittest.test("to-json--from-json", () { | 342 unittest.test("to-json--from-json", () { |
| 343 var o = buildEmpty(); | 343 var o = buildEmpty(); |
| 344 var od = new api.Empty.fromJson(o.toJson()); | 344 var od = new api.Empty.fromJson(o.toJson()); |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 res.list(arg_name, pageSize: arg_pageSize, pageToken: arg_pageToken).then(
unittest.expectAsync(((api.ListRulesetsResponse response) { | 920 res.list(arg_name, pageSize: arg_pageSize, pageToken: arg_pageToken).then(
unittest.expectAsync(((api.ListRulesetsResponse response) { |
| 921 checkListRulesetsResponse(response); | 921 checkListRulesetsResponse(response); |
| 922 }))); | 922 }))); |
| 923 }); | 923 }); |
| 924 | 924 |
| 925 }); | 925 }); |
| 926 | 926 |
| 927 | 927 |
| 928 } | 928 } |
| 929 | 929 |
| OLD | NEW |