Index: generated/googleapis/test/prediction/v1_6_test.dart |
diff --git a/generated/googleapis/test/prediction/v1_6_test.dart b/generated/googleapis/test/prediction/v1_6_test.dart |
index 662307b07e007509480783be522ef17228cc3330..5167039e741684d2f5763e7d9a29f059a31a2d3c 100644 |
--- a/generated/googleapis/test/prediction/v1_6_test.dart |
+++ b/generated/googleapis/test/prediction/v1_6_test.dart |
@@ -8,13 +8,48 @@ import "dart:convert" as convert; |
import 'package:http/http.dart' as http; |
import 'package:http/testing.dart' as http_testing; |
import 'package:unittest/unittest.dart' as unittest; |
-import 'package:googleapis/common/common.dart' as common; |
-import 'package:googleapis/src/common_internal.dart' as common_internal; |
-import '../common/common_internal_test.dart' as common_test; |
import 'package:googleapis/prediction/v1_6.dart' as api; |
+class HttpServerMock extends http.BaseClient { |
+ core.Function _callback; |
+ core.bool _expectJson; |
+ void register(core.Function callback, core.bool expectJson) { |
+ _callback = callback; |
+ _expectJson = expectJson; |
+ } |
+ |
+ async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
+ if (_expectJson) { |
+ return request.finalize() |
+ .transform(convert.UTF8.decoder) |
+ .join('') |
+ .then((core.String jsonString) { |
+ if (jsonString.isEmpty) { |
+ return _callback(request, null); |
+ } else { |
+ return _callback(request, convert.JSON.decode(jsonString)); |
+ } |
+ }); |
+ } else { |
+ var stream = request.finalize(); |
+ if (stream == null) { |
+ return _callback(request, []); |
+ } else { |
+ return stream.toBytes().then((data) { |
+ return _callback(request, data); |
+ }); |
+ } |
+ } |
+ } |
+} |
+ |
+http.StreamedResponse stringResponse( |
+ core.int status, core.Map headers, core.String body) { |
+ var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
+ return new http.StreamedResponse(stream, status, headers: headers); |
+} |
core.int buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues = 0; |
buildAnalyzeDataDescriptionFeaturesCategoricalValues() { |
@@ -37,14 +72,14 @@ checkAnalyzeDataDescriptionFeaturesCategoricalValues(api.AnalyzeDataDescriptionF |
buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues--; |
} |
-buildUnnamed1108() { |
+buildUnnamed1291() { |
var o = new core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues>(); |
o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); |
o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); |
return o; |
} |
-checkUnnamed1108(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { |
+checkUnnamed1291(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[0]); |
checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[1]); |
@@ -56,7 +91,7 @@ buildAnalyzeDataDescriptionFeaturesCategorical() { |
buildCounterAnalyzeDataDescriptionFeaturesCategorical++; |
if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { |
o.count = "foo"; |
- o.values = buildUnnamed1108(); |
+ o.values = buildUnnamed1291(); |
} |
buildCounterAnalyzeDataDescriptionFeaturesCategorical--; |
return o; |
@@ -66,7 +101,7 @@ checkAnalyzeDataDescriptionFeaturesCategorical(api.AnalyzeDataDescriptionFeature |
buildCounterAnalyzeDataDescriptionFeaturesCategorical++; |
if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { |
unittest.expect(o.count, unittest.equals('foo')); |
- checkUnnamed1108(o.values); |
+ checkUnnamed1291(o.values); |
} |
buildCounterAnalyzeDataDescriptionFeaturesCategorical--; |
} |
@@ -138,14 +173,14 @@ checkAnalyzeDataDescriptionFeatures(api.AnalyzeDataDescriptionFeatures o) { |
buildCounterAnalyzeDataDescriptionFeatures--; |
} |
-buildUnnamed1109() { |
+buildUnnamed1292() { |
var o = new core.List<api.AnalyzeDataDescriptionFeatures>(); |
o.add(buildAnalyzeDataDescriptionFeatures()); |
o.add(buildAnalyzeDataDescriptionFeatures()); |
return o; |
} |
-checkUnnamed1109(core.List<api.AnalyzeDataDescriptionFeatures> o) { |
+checkUnnamed1292(core.List<api.AnalyzeDataDescriptionFeatures> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAnalyzeDataDescriptionFeatures(o[0]); |
checkAnalyzeDataDescriptionFeatures(o[1]); |
@@ -195,14 +230,14 @@ checkAnalyzeDataDescriptionOutputFeatureText(api.AnalyzeDataDescriptionOutputFea |
buildCounterAnalyzeDataDescriptionOutputFeatureText--; |
} |
-buildUnnamed1110() { |
+buildUnnamed1293() { |
var o = new core.List<api.AnalyzeDataDescriptionOutputFeatureText>(); |
o.add(buildAnalyzeDataDescriptionOutputFeatureText()); |
o.add(buildAnalyzeDataDescriptionOutputFeatureText()); |
return o; |
} |
-checkUnnamed1110(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { |
+checkUnnamed1293(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkAnalyzeDataDescriptionOutputFeatureText(o[0]); |
checkAnalyzeDataDescriptionOutputFeatureText(o[1]); |
@@ -214,7 +249,7 @@ buildAnalyzeDataDescriptionOutputFeature() { |
buildCounterAnalyzeDataDescriptionOutputFeature++; |
if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { |
o.numeric = buildAnalyzeDataDescriptionOutputFeatureNumeric(); |
- o.text = buildUnnamed1110(); |
+ o.text = buildUnnamed1293(); |
} |
buildCounterAnalyzeDataDescriptionOutputFeature--; |
return o; |
@@ -224,7 +259,7 @@ checkAnalyzeDataDescriptionOutputFeature(api.AnalyzeDataDescriptionOutputFeature |
buildCounterAnalyzeDataDescriptionOutputFeature++; |
if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { |
checkAnalyzeDataDescriptionOutputFeatureNumeric(o.numeric); |
- checkUnnamed1110(o.text); |
+ checkUnnamed1293(o.text); |
} |
buildCounterAnalyzeDataDescriptionOutputFeature--; |
} |
@@ -234,7 +269,7 @@ buildAnalyzeDataDescription() { |
var o = new api.AnalyzeDataDescription(); |
buildCounterAnalyzeDataDescription++; |
if (buildCounterAnalyzeDataDescription < 3) { |
- o.features = buildUnnamed1109(); |
+ o.features = buildUnnamed1292(); |
o.outputFeature = buildAnalyzeDataDescriptionOutputFeature(); |
} |
buildCounterAnalyzeDataDescription--; |
@@ -244,72 +279,72 @@ buildAnalyzeDataDescription() { |
checkAnalyzeDataDescription(api.AnalyzeDataDescription o) { |
buildCounterAnalyzeDataDescription++; |
if (buildCounterAnalyzeDataDescription < 3) { |
- checkUnnamed1109(o.features); |
+ checkUnnamed1292(o.features); |
checkAnalyzeDataDescriptionOutputFeature(o.outputFeature); |
} |
buildCounterAnalyzeDataDescription--; |
} |
-buildUnnamed1111() { |
+buildUnnamed1294() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed1111(core.Map<core.String, core.String> o) { |
+checkUnnamed1294(core.Map<core.String, core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o["x"], unittest.equals('foo')); |
unittest.expect(o["y"], unittest.equals('foo')); |
} |
-buildUnnamed1112() { |
+buildUnnamed1295() { |
var o = new core.List<core.Map<core.String, core.String>>(); |
- o.add(buildUnnamed1111()); |
- o.add(buildUnnamed1111()); |
+ o.add(buildUnnamed1294()); |
+ o.add(buildUnnamed1294()); |
return o; |
} |
-checkUnnamed1112(core.List<core.Map<core.String, core.String>> o) { |
+checkUnnamed1295(core.List<core.Map<core.String, core.String>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1111(o[0]); |
- checkUnnamed1111(o[1]); |
+ checkUnnamed1294(o[0]); |
+ checkUnnamed1294(o[1]); |
} |
-buildUnnamed1113() { |
+buildUnnamed1296() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed1113(core.Map<core.String, core.String> o) { |
+checkUnnamed1296(core.Map<core.String, core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o["x"], unittest.equals('foo')); |
unittest.expect(o["y"], unittest.equals('foo')); |
} |
-buildUnnamed1114() { |
+buildUnnamed1297() { |
var o = new core.Map<core.String, core.Map<core.String, core.String>>(); |
- o["x"] = buildUnnamed1113(); |
- o["y"] = buildUnnamed1113(); |
+ o["x"] = buildUnnamed1296(); |
+ o["y"] = buildUnnamed1296(); |
return o; |
} |
-checkUnnamed1114(core.Map<core.String, core.Map<core.String, core.String>> o) { |
+checkUnnamed1297(core.Map<core.String, core.Map<core.String, core.String>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1113(o["x"]); |
- checkUnnamed1113(o["y"]); |
+ checkUnnamed1296(o["x"]); |
+ checkUnnamed1296(o["y"]); |
} |
-buildUnnamed1115() { |
+buildUnnamed1298() { |
var o = new core.Map<core.String, core.String>(); |
o["x"] = "foo"; |
o["y"] = "foo"; |
return o; |
} |
-checkUnnamed1115(core.Map<core.String, core.String> o) { |
+checkUnnamed1298(core.Map<core.String, core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o["x"], unittest.equals('foo')); |
unittest.expect(o["y"], unittest.equals('foo')); |
@@ -320,8 +355,8 @@ buildAnalyzeModelDescription() { |
var o = new api.AnalyzeModelDescription(); |
buildCounterAnalyzeModelDescription++; |
if (buildCounterAnalyzeModelDescription < 3) { |
- o.confusionMatrix = buildUnnamed1114(); |
- o.confusionMatrixRowTotals = buildUnnamed1115(); |
+ o.confusionMatrix = buildUnnamed1297(); |
+ o.confusionMatrixRowTotals = buildUnnamed1298(); |
o.modelinfo = buildInsert2(); |
} |
buildCounterAnalyzeModelDescription--; |
@@ -331,8 +366,8 @@ buildAnalyzeModelDescription() { |
checkAnalyzeModelDescription(api.AnalyzeModelDescription o) { |
buildCounterAnalyzeModelDescription++; |
if (buildCounterAnalyzeModelDescription < 3) { |
- checkUnnamed1114(o.confusionMatrix); |
- checkUnnamed1115(o.confusionMatrixRowTotals); |
+ checkUnnamed1297(o.confusionMatrix); |
+ checkUnnamed1298(o.confusionMatrixRowTotals); |
checkInsert2(o.modelinfo); |
} |
buildCounterAnalyzeModelDescription--; |
@@ -344,7 +379,7 @@ buildAnalyze() { |
buildCounterAnalyze++; |
if (buildCounterAnalyze < 3) { |
o.dataDescription = buildAnalyzeDataDescription(); |
- o.errors = buildUnnamed1112(); |
+ o.errors = buildUnnamed1295(); |
o.id = "foo"; |
o.kind = "foo"; |
o.modelDescription = buildAnalyzeModelDescription(); |
@@ -358,7 +393,7 @@ checkAnalyze(api.Analyze o) { |
buildCounterAnalyze++; |
if (buildCounterAnalyze < 3) { |
checkAnalyzeDataDescription(o.dataDescription); |
- checkUnnamed1112(o.errors); |
+ checkUnnamed1295(o.errors); |
unittest.expect(o.id, unittest.equals('foo')); |
unittest.expect(o.kind, unittest.equals('foo')); |
checkAnalyzeModelDescription(o.modelDescription); |
@@ -367,14 +402,14 @@ checkAnalyze(api.Analyze o) { |
buildCounterAnalyze--; |
} |
-buildUnnamed1116() { |
+buildUnnamed1299() { |
var o = new core.List<core.Object>(); |
o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
return o; |
} |
-checkUnnamed1116(core.List<core.Object> o) { |
+checkUnnamed1299(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); |
var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); |
@@ -385,7 +420,7 @@ buildInputInput() { |
var o = new api.InputInput(); |
buildCounterInputInput++; |
if (buildCounterInputInput < 3) { |
- o.csvInstance = buildUnnamed1116(); |
+ o.csvInstance = buildUnnamed1299(); |
} |
buildCounterInputInput--; |
return o; |
@@ -394,7 +429,7 @@ buildInputInput() { |
checkInputInput(api.InputInput o) { |
buildCounterInputInput++; |
if (buildCounterInputInput < 3) { |
- checkUnnamed1116(o.csvInstance); |
+ checkUnnamed1299(o.csvInstance); |
} |
buildCounterInputInput--; |
} |
@@ -418,14 +453,14 @@ checkInput(api.Input o) { |
buildCounterInput--; |
} |
-buildUnnamed1117() { |
+buildUnnamed1300() { |
var o = new core.List<core.Object>(); |
o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
return o; |
} |
-checkUnnamed1117(core.List<core.Object> o) { |
+checkUnnamed1300(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); |
var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); |
@@ -436,7 +471,7 @@ buildInsertTrainingInstances() { |
var o = new api.InsertTrainingInstances(); |
buildCounterInsertTrainingInstances++; |
if (buildCounterInsertTrainingInstances < 3) { |
- o.csvInstance = buildUnnamed1117(); |
+ o.csvInstance = buildUnnamed1300(); |
o.output = "foo"; |
} |
buildCounterInsertTrainingInstances--; |
@@ -446,49 +481,49 @@ buildInsertTrainingInstances() { |
checkInsertTrainingInstances(api.InsertTrainingInstances o) { |
buildCounterInsertTrainingInstances++; |
if (buildCounterInsertTrainingInstances < 3) { |
- checkUnnamed1117(o.csvInstance); |
+ checkUnnamed1300(o.csvInstance); |
unittest.expect(o.output, unittest.equals('foo')); |
} |
buildCounterInsertTrainingInstances--; |
} |
-buildUnnamed1118() { |
+buildUnnamed1301() { |
var o = new core.List<api.InsertTrainingInstances>(); |
o.add(buildInsertTrainingInstances()); |
o.add(buildInsertTrainingInstances()); |
return o; |
} |
-checkUnnamed1118(core.List<api.InsertTrainingInstances> o) { |
+checkUnnamed1301(core.List<api.InsertTrainingInstances> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkInsertTrainingInstances(o[0]); |
checkInsertTrainingInstances(o[1]); |
} |
-buildUnnamed1119() { |
+buildUnnamed1302() { |
var o = new core.Map<core.String, core.double>(); |
o["x"] = 42.0; |
o["y"] = 42.0; |
return o; |
} |
-checkUnnamed1119(core.Map<core.String, core.double> o) { |
+checkUnnamed1302(core.Map<core.String, core.double> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o["x"], unittest.equals(42.0)); |
unittest.expect(o["y"], unittest.equals(42.0)); |
} |
-buildUnnamed1120() { |
+buildUnnamed1303() { |
var o = new core.List<core.Map<core.String, core.double>>(); |
- o.add(buildUnnamed1119()); |
- o.add(buildUnnamed1119()); |
+ o.add(buildUnnamed1302()); |
+ o.add(buildUnnamed1302()); |
return o; |
} |
-checkUnnamed1120(core.List<core.Map<core.String, core.double>> o) { |
+checkUnnamed1303(core.List<core.Map<core.String, core.double>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1119(o[0]); |
- checkUnnamed1119(o[1]); |
+ checkUnnamed1302(o[0]); |
+ checkUnnamed1302(o[1]); |
} |
core.int buildCounterInsert = 0; |
@@ -502,8 +537,8 @@ buildInsert() { |
o.storageDataLocation = "foo"; |
o.storagePMMLLocation = "foo"; |
o.storagePMMLModelLocation = "foo"; |
- o.trainingInstances = buildUnnamed1118(); |
- o.utility = buildUnnamed1120(); |
+ o.trainingInstances = buildUnnamed1301(); |
+ o.utility = buildUnnamed1303(); |
} |
buildCounterInsert--; |
return o; |
@@ -518,8 +553,8 @@ checkInsert(api.Insert o) { |
unittest.expect(o.storageDataLocation, unittest.equals('foo')); |
unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); |
unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); |
- checkUnnamed1118(o.trainingInstances); |
- checkUnnamed1120(o.utility); |
+ checkUnnamed1301(o.trainingInstances); |
+ checkUnnamed1303(o.utility); |
} |
buildCounterInsert--; |
} |
@@ -592,14 +627,14 @@ checkInsert2(api.Insert2 o) { |
buildCounterInsert2--; |
} |
-buildUnnamed1121() { |
+buildUnnamed1304() { |
var o = new core.List<api.Insert2>(); |
o.add(buildInsert2()); |
o.add(buildInsert2()); |
return o; |
} |
-checkUnnamed1121(core.List<api.Insert2> o) { |
+checkUnnamed1304(core.List<api.Insert2> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkInsert2(o[0]); |
checkInsert2(o[1]); |
@@ -610,7 +645,7 @@ buildList() { |
var o = new api.List(); |
buildCounterList++; |
if (buildCounterList < 3) { |
- o.items = buildUnnamed1121(); |
+ o.items = buildUnnamed1304(); |
o.kind = "foo"; |
o.nextPageToken = "foo"; |
o.selfLink = "foo"; |
@@ -622,7 +657,7 @@ buildList() { |
checkList(api.List o) { |
buildCounterList++; |
if (buildCounterList < 3) { |
- checkUnnamed1121(o.items); |
+ checkUnnamed1304(o.items); |
unittest.expect(o.kind, unittest.equals('foo')); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
unittest.expect(o.selfLink, unittest.equals('foo')); |
@@ -651,14 +686,14 @@ checkOutputOutputMulti(api.OutputOutputMulti o) { |
buildCounterOutputOutputMulti--; |
} |
-buildUnnamed1122() { |
+buildUnnamed1305() { |
var o = new core.List<api.OutputOutputMulti>(); |
o.add(buildOutputOutputMulti()); |
o.add(buildOutputOutputMulti()); |
return o; |
} |
-checkUnnamed1122(core.List<api.OutputOutputMulti> o) { |
+checkUnnamed1305(core.List<api.OutputOutputMulti> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkOutputOutputMulti(o[0]); |
checkOutputOutputMulti(o[1]); |
@@ -672,7 +707,7 @@ buildOutput() { |
o.id = "foo"; |
o.kind = "foo"; |
o.outputLabel = "foo"; |
- o.outputMulti = buildUnnamed1122(); |
+ o.outputMulti = buildUnnamed1305(); |
o.outputValue = 42.0; |
o.selfLink = "foo"; |
} |
@@ -686,21 +721,21 @@ checkOutput(api.Output o) { |
unittest.expect(o.id, unittest.equals('foo')); |
unittest.expect(o.kind, unittest.equals('foo')); |
unittest.expect(o.outputLabel, unittest.equals('foo')); |
- checkUnnamed1122(o.outputMulti); |
+ checkUnnamed1305(o.outputMulti); |
unittest.expect(o.outputValue, unittest.equals(42.0)); |
unittest.expect(o.selfLink, unittest.equals('foo')); |
} |
buildCounterOutput--; |
} |
-buildUnnamed1123() { |
+buildUnnamed1306() { |
var o = new core.List<core.Object>(); |
o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
return o; |
} |
-checkUnnamed1123(core.List<core.Object> o) { |
+checkUnnamed1306(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); |
var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); |
@@ -711,7 +746,7 @@ buildUpdate() { |
var o = new api.Update(); |
buildCounterUpdate++; |
if (buildCounterUpdate < 3) { |
- o.csvInstance = buildUnnamed1123(); |
+ o.csvInstance = buildUnnamed1306(); |
o.output = "foo"; |
} |
buildCounterUpdate--; |
@@ -721,7 +756,7 @@ buildUpdate() { |
checkUpdate(api.Update o) { |
buildCounterUpdate++; |
if (buildCounterUpdate < 3) { |
- checkUnnamed1123(o.csvInstance); |
+ checkUnnamed1306(o.csvInstance); |
unittest.expect(o.output, unittest.equals('foo')); |
} |
buildCounterUpdate--; |
@@ -921,7 +956,7 @@ main() { |
unittest.group("resource-HostedmodelsResourceApi", () { |
unittest.test("method--predict", () { |
- var mock = new common_test.HttpServerMock(); |
+ var mock = new HttpServerMock(); |
api.HostedmodelsResourceApi res = new api.PredictionApi(mock).hostedmodels; |
var arg_request = buildInput(); |
var arg_project = "foo"; |
@@ -959,7 +994,7 @@ main() { |
"content-type" : "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildOutput()); |
- return new async.Future.value(common_test.stringResponse(200, h, resp)); |
+ return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
res.predict(arg_request, arg_project, arg_hostedModelName).then(unittest.expectAsync(((api.Output response) { |
checkOutput(response); |
@@ -972,7 +1007,7 @@ main() { |
unittest.group("resource-TrainedmodelsResourceApi", () { |
unittest.test("method--analyze", () { |
- var mock = new common_test.HttpServerMock(); |
+ var mock = new HttpServerMock(); |
api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; |
var arg_project = "foo"; |
var arg_id = "foo"; |
@@ -1006,7 +1041,7 @@ main() { |
"content-type" : "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildAnalyze()); |
- return new async.Future.value(common_test.stringResponse(200, h, resp)); |
+ return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
res.analyze(arg_project, arg_id).then(unittest.expectAsync(((api.Analyze response) { |
checkAnalyze(response); |
@@ -1015,7 +1050,7 @@ main() { |
unittest.test("method--delete", () { |
- var mock = new common_test.HttpServerMock(); |
+ var mock = new HttpServerMock(); |
api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; |
var arg_project = "foo"; |
var arg_id = "foo"; |
@@ -1049,14 +1084,14 @@ main() { |
"content-type" : "application/json; charset=utf-8", |
}; |
var resp = ""; |
- return new async.Future.value(common_test.stringResponse(200, h, resp)); |
+ return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
res.delete(arg_project, arg_id).then(unittest.expectAsync((_) {})); |
}); |
unittest.test("method--get", () { |
- var mock = new common_test.HttpServerMock(); |
+ var mock = new HttpServerMock(); |
api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; |
var arg_project = "foo"; |
var arg_id = "foo"; |
@@ -1090,7 +1125,7 @@ main() { |
"content-type" : "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildInsert2()); |
- return new async.Future.value(common_test.stringResponse(200, h, resp)); |
+ return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
res.get(arg_project, arg_id).then(unittest.expectAsync(((api.Insert2 response) { |
checkInsert2(response); |
@@ -1099,7 +1134,7 @@ main() { |
unittest.test("method--insert", () { |
- var mock = new common_test.HttpServerMock(); |
+ var mock = new HttpServerMock(); |
api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; |
var arg_request = buildInsert(); |
var arg_project = "foo"; |
@@ -1136,7 +1171,7 @@ main() { |
"content-type" : "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildInsert2()); |
- return new async.Future.value(common_test.stringResponse(200, h, resp)); |
+ return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Insert2 response) { |
checkInsert2(response); |
@@ -1145,7 +1180,7 @@ main() { |
unittest.test("method--list", () { |
- var mock = new common_test.HttpServerMock(); |
+ var mock = new HttpServerMock(); |
api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; |
var arg_project = "foo"; |
var arg_maxResults = 42; |
@@ -1182,7 +1217,7 @@ main() { |
"content-type" : "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildList()); |
- return new async.Future.value(common_test.stringResponse(200, h, resp)); |
+ return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.List response) { |
checkList(response); |
@@ -1191,7 +1226,7 @@ main() { |
unittest.test("method--predict", () { |
- var mock = new common_test.HttpServerMock(); |
+ var mock = new HttpServerMock(); |
api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; |
var arg_request = buildInput(); |
var arg_project = "foo"; |
@@ -1229,7 +1264,7 @@ main() { |
"content-type" : "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildOutput()); |
- return new async.Future.value(common_test.stringResponse(200, h, resp)); |
+ return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
res.predict(arg_request, arg_project, arg_id).then(unittest.expectAsync(((api.Output response) { |
checkOutput(response); |
@@ -1238,7 +1273,7 @@ main() { |
unittest.test("method--update", () { |
- var mock = new common_test.HttpServerMock(); |
+ var mock = new HttpServerMock(); |
api.TrainedmodelsResourceApi res = new api.PredictionApi(mock).trainedmodels; |
var arg_request = buildUpdate(); |
var arg_project = "foo"; |
@@ -1276,7 +1311,7 @@ main() { |
"content-type" : "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildInsert2()); |
- return new async.Future.value(common_test.stringResponse(200, h, resp)); |
+ return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
res.update(arg_request, arg_project, arg_id).then(unittest.expectAsync(((api.Insert2 response) { |
checkInsert2(response); |