Skip to content

Commit

Permalink
Fix analyzer hints. (google#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobr-google authored Jul 6, 2017
1 parent 506c706 commit 476c483
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/list_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void main() {
test('PbList validates items', () {
expect(() {
(new PbList<int>() as dynamic).add('hello');
}, throws);
}, throwsA(new isInstanceOf<TypeError>()));
});

test('PbList for signed int32 validates items', () {
Expand Down
4 changes: 2 additions & 2 deletions test/map_mixin_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ library map_mixin_test;
import 'dart:collection' show MapMixin;

import 'package:protobuf/src/protobuf/mixins/map_mixin.dart';
import 'package:test/test.dart' show test, expect, same, throws;
import 'package:test/test.dart' show expect, same, test, throwsArgumentError;

import 'mock_util.dart' show MockMessage, mockInfo;

Expand Down Expand Up @@ -61,7 +61,7 @@ main() {
expect(r.child, same(child));
expect(r["child"], same(child));

expect(() => r["int32s"] = 123, throws);
expect(() => r["int32s"] = 123, throwsArgumentError);
r["int32s"].add(123);
expect(r["int32s"], [123]);
expect(r["int32s"], same(r["int32s"]));
Expand Down
1 change: 1 addition & 0 deletions test/reserved_names_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'package:protobuf/mixins_meta.dart' show findMixin;
import 'mirror_util.dart' show findMemberNames;

// Import the libraries we will access via the mirrors.
// ignore_for_file: unused_import
import 'package:protobuf/protobuf.dart' show GeneratedMessage;
import 'package:protobuf/src/protobuf/mixins/event_mixin.dart'
show PbEventMixin;
Expand Down

0 comments on commit 476c483

Please sign in to comment.