Unverified Commit 5a24840c authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Make some matchers in flutter_test final (#17725)

There's no reason for them to read/write.
parent 2f397e5d
...@@ -154,7 +154,7 @@ const Matcher hasAGoodToStringDeep = const _HasGoodToStringDeep(); ...@@ -154,7 +154,7 @@ const Matcher hasAGoodToStringDeep = const _HasGoodToStringDeep();
/// * [throwsAssertionError], to test if a function throws any [AssertionError]. /// * [throwsAssertionError], to test if a function throws any [AssertionError].
/// * [throwsArgumentError], to test if a functions throws an [ArgumentError]. /// * [throwsArgumentError], to test if a functions throws an [ArgumentError].
/// * [isFlutterError], to test if any object is a [FlutterError]. /// * [isFlutterError], to test if any object is a [FlutterError].
Matcher throwsFlutterError = throwsA(isFlutterError); final Matcher throwsFlutterError = throwsA(isFlutterError);
/// A matcher for functions that throw [AssertionError]. /// A matcher for functions that throw [AssertionError].
/// ///
...@@ -165,7 +165,7 @@ Matcher throwsFlutterError = throwsA(isFlutterError); ...@@ -165,7 +165,7 @@ Matcher throwsFlutterError = throwsA(isFlutterError);
/// * [throwsFlutterError], to test if a function throws a [FlutterError]. /// * [throwsFlutterError], to test if a function throws a [FlutterError].
/// * [throwsArgumentError], to test if a functions throws an [ArgumentError]. /// * [throwsArgumentError], to test if a functions throws an [ArgumentError].
/// * [isAssertionError], to test if any object is any kind of [AssertionError]. /// * [isAssertionError], to test if any object is any kind of [AssertionError].
Matcher throwsAssertionError = throwsA(isAssertionError); final Matcher throwsAssertionError = throwsA(isAssertionError);
/// A matcher for [FlutterError]. /// A matcher for [FlutterError].
/// ///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment