File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
library expect;
10
10
11
+ import 'package:meta/meta.dart' ;
12
+
11
13
/**
12
14
* Expect is used for tests that do not want to make use of the
13
15
* Dart unit test library - for example, the core language tests.
@@ -265,6 +267,7 @@ class Expect {
265
267
}
266
268
267
269
// Unconditional failure.
270
+ @alwaysThrows
268
271
static void fail (String msg) {
269
272
_fail ("Expect.fail('$msg ')" );
270
273
}
@@ -647,6 +650,7 @@ class Expect {
647
650
static String _getMessage (String reason) =>
648
651
(reason == null ) ? "" : ", '$reason '" ;
649
652
653
+ @alwaysThrows
650
654
static void _fail (String message) {
651
655
throw new ExpectException (message);
652
656
}
Original file line number Diff line number Diff line change @@ -8,3 +8,6 @@ description: >
8
8
test assertions.
9
9
environment :
10
10
sdk : " >=0.8.10+6 <3.0.0"
11
+
12
+ dependencies :
13
+ meta : any
You can’t perform that action at this time.
0 commit comments