summaryrefslogtreecommitdiff
path: root/test/dart
diff options
context:
space:
mode:
authorMark Erickson <merickson@apache.org>2016-12-13 22:20:03 -0600
committerMark Erickson <merickson@apache.org>2016-12-13 22:20:03 -0600
commit0d9b713b173f35ce02552b2f4372899440a99b25 (patch)
treec623e305a4c461af5d036c9293a0776647a6ec94 /test/dart
parent60611917cf309d2a25b9cd8f8b5631784b07323d (diff)
downloadthrift-0d9b713b173f35ce02552b2f4372899440a99b25.tar.gz
THRIFT-3981 Enable analyzer strong mode in Dart library
Client: Dart Patch: Mark Erickson <merickson@apache.org> This closes #1135
Diffstat (limited to 'test/dart')
-rw-r--r--test/dart/test_client/.analysis_options2
-rw-r--r--test/dart/test_client/bin/main.dart2
-rw-r--r--test/dart/test_client/pubspec.yaml5
3 files changed, 7 insertions, 2 deletions
diff --git a/test/dart/test_client/.analysis_options b/test/dart/test_client/.analysis_options
new file mode 100644
index 000000000..a10d4c5a0
--- /dev/null
+++ b/test/dart/test_client/.analysis_options
@@ -0,0 +1,2 @@
+analyzer:
+ strong-mode: true
diff --git a/test/dart/test_client/bin/main.dart b/test/dart/test_client/bin/main.dart
index 78a4f79ee..996844b5b 100644
--- a/test/dart/test_client/bin/main.dart
+++ b/test/dart/test_client/bin/main.dart
@@ -251,7 +251,7 @@ List<TTest> _createTests() {
}));
tests.add(new TTest(TEST_CONTAINERS, 'testSet', () async {
- var input = new Set.from([-2, -1, 0, 1, 2]);
+ var input = new Set<int>.from([-2, -1, 0, 1, 2]);
var result = await client.testSet(input);
var equality = const SetEquality();
if (!equality.equals(result, input)) throw new TTestError(result, input);
diff --git a/test/dart/test_client/pubspec.yaml b/test/dart/test_client/pubspec.yaml
index 493ee328e..a91aa455a 100644
--- a/test/dart/test_client/pubspec.yaml
+++ b/test/dart/test_client/pubspec.yaml
@@ -20,8 +20,10 @@ version: 1.0.0-dev
description: A client integration test for the Dart Thrift library
author: Apache Thrift Developers <dev@thrift.apache.org>
homepage: http://thrift.apache.org
+
environment:
- sdk: ^1.12.0
+ sdk: ">=1.13.0 <2.0.0"
+
dependencies:
args: ^0.13.0
http: ^0.11.0
@@ -29,5 +31,6 @@ dependencies:
path: ../../../lib/dart
thrift_test:
path: ../gen-dart/thrift_test
+
dev_dependencies:
test: "^0.12.0"