Cleanup random dead test code (#104568)

This commit is contained in:
Michael Goderbauer
2022-05-25 10:23:10 -07:00
committed by GitHub
parent da24f105bd
commit 2b14e993a7
8 changed files with 5 additions and 66 deletions

View File

@@ -8,10 +8,7 @@ import 'package:flutter_driver/src/common/error.dart';
import 'package:test_api/test_api.dart'; // ignore: deprecated_member_use
export 'package:test_api/fake.dart'; // ignore: deprecated_member_use
export 'package:test_api/test_api.dart' hide isInstanceOf; // ignore: deprecated_member_use
/// A matcher that compares the type of the actual value to the type argument T.
TypeMatcher<T> isInstanceOf<T>() => isA<T>();
export 'package:test_api/test_api.dart'; // ignore: deprecated_member_use
void tryToDelete(Directory directory) {
// This should not be necessary, but it turns out that
@@ -26,6 +23,3 @@ void tryToDelete(Directory directory) {
/// Matcher for functions that throw [DriverError].
final Matcher throwsDriverError = throwsA(isA<DriverError>());
/// Matcher for functions that throw [AssertionError].
final Matcher throwsAssertionError = throwsA(isA<AssertionError>());