File tree Expand file tree Collapse file tree 8 files changed +30
-31
lines changed Expand file tree Collapse file tree 8 files changed +30
-31
lines changed Original file line number Diff line number Diff line change 37
37
strategy :
38
38
fail-fast : false
39
39
matrix :
40
- # TODO(srawlins): Re-enable stable Dart when 3.6.0 is available.
41
- # sdk: [3.5.0, dev]
42
40
sdk : [dev]
43
41
steps :
44
42
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
51
49
- name : Build generated artifacts
52
50
run : dart pub run build_runner build
53
51
- name : Analyze code
54
- run : dart analyze
52
+ run : dart analyze --fatal-infos
55
53
56
54
# Run tests against stable and dev SDKs.
57
55
test :
61
59
fail-fast : false
62
60
matrix :
63
61
os : [ubuntu-latest]
64
- # TODO(srawlins): Re-enable stable Dart when 3.6.0 is available.
65
- # sdk: [3.5.0, dev]
66
- sdk : [dev]
62
+ sdk : [3.6.0, dev]
67
63
steps :
68
64
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
69
65
- uses : dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
Original file line number Diff line number Diff line change 3
3
* Ignore "must_be_immutable" warning in generated files. Mocks cannot be made
4
4
immutable anyway, but this way users aren't prevented from using generated
5
5
mocks altogether.
6
- * Require Dart SDK ^3.6.0-0 .
7
- * Require analyzer ^ 6.9.0.
8
- * Require build_runner ^2.4.11.
9
- * Require dart_style ^2.3.7, so that the current Dart language version can be
10
- passed to ` DartFormatter ` .
6
+ * Require Dart SDK ^3.6.0.
7
+ * Require ` analyzer: '>= 6.9.0 <8.0.0' ` .
8
+ * Require ` dart_style: '>=2.3.7 <4.0.0' ` , so that the current Dart language
9
+ version can be passed to ` DartFormatter ` .
10
+ * Require ` source_gen: ">=1.4.0 <3.0.0" ` .
11
11
* Add support for extension types.
12
12
* Add topics to ` pubspec.yaml ` .
13
13
* Fix a bug where type aliases in type arguments were not correctly
Original file line number Diff line number Diff line change 1
- > [ !IMPORTANT]
2
- > This repo has moved to https://github.com/dart-lang/test/tree/master/pkgs/mockito
3
-
4
1
[ ![ Dart CI] ( https://github.com/dart-lang/mockito/actions/workflows/test-package.yml/badge.svg )] ( https://github.com/dart-lang/mockito/actions/workflows/test-package.yml )
5
2
[ ![ Pub] ( https://img.shields.io/pub/v/mockito.svg )] ( https://pub.dev/packages/mockito )
6
3
[ ![ package publisher] ( https://img.shields.io/pub/publisher/mockito.svg )] ( https://pub.dev/packages/mockito/publisher )
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // ignore_for_file: combinators_ordering
16
+
15
17
// ignore: deprecated_member_use
16
18
export 'package:test_api/fake.dart' show Fake;
17
19
Original file line number Diff line number Diff line change @@ -1707,8 +1707,8 @@ class _MockClassInfo {
1707
1707
..initializers.add (refer ('super' )
1708
1708
.call ([refer ('parent' ), refer ('parentInvocation' )]).code)));
1709
1709
1710
- final toStringMethod =
1711
- elementToFake .lookUpMethod ('toString' , elementToFake.library);
1710
+ final toStringMethod = elementToFake. augmented
1711
+ .lookUpMethod (name : 'toString' , library : elementToFake.library);
1712
1712
if (toStringMethod != null && toStringMethod.parameters.isNotEmpty) {
1713
1713
// If [elementToFake] includes an overriding `toString` implementation,
1714
1714
// we need to include an implementation which matches the signature.
Original file line number Diff line number Diff line change @@ -10,25 +10,25 @@ topics:
10
10
- mocking
11
11
12
12
environment :
13
- sdk : ^3.6.0-0
13
+ sdk : ^3.6.0
14
14
15
15
dependencies :
16
- analyzer : ' >=6.9.0 <7 .0.0'
17
- build : ^2.0.0
16
+ analyzer : ' >=6.9.0 <8 .0.0'
17
+ build : ^2.4.1
18
18
code_builder : ^4.5.0
19
- collection : ^1.15 .0
20
- dart_style : ^ 2.3.7
21
- matcher : ^0.12.15
22
- meta : ^1.3 .0
23
- path : ^1.8 .0
24
- source_gen : ^1.0.0
25
- test_api : ' >=0.2 .1 <0.8.0'
19
+ collection : ^1.19 .0
20
+ dart_style : ' >= 2.3.7 <4.0.0 '
21
+ matcher : ^0.12.16
22
+ meta : ^1.15 .0
23
+ path : ^1.9 .0
24
+ source_gen : " >=1.4.0 <3.0.0 "
25
+ test_api : " >=0.6 .1 <0.8.0"
26
26
27
27
dev_dependencies :
28
28
build_runner : ^2.4.11
29
- build_test : ^2.0.0
30
- build_web_compilers : ' >=3 .0.0 <5.0.0 '
29
+ build_test : ^2.1.7
30
+ build_web_compilers : ^4 .0.11
31
31
http : ^1.0.0
32
- lints : ^3.0 .0
33
- package_config : ^2.0 .0
34
- test : ^1.16.0
32
+ lints : ^5.1 .0
33
+ package_config : ^2.1 .0
34
+ test : ^1.24.4
Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
@TestOn ('vm' )
16
+ library ;
17
+
16
18
import 'dart:convert' show utf8;
17
19
18
20
import 'package:build/build.dart' ;
Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
15
15
@TestOn ('vm' )
16
+ library ;
17
+
16
18
import 'dart:convert' show utf8;
17
19
18
20
import 'package:build/build.dart' ;
You can’t perform that action at this time.
0 commit comments