Make coverage, like, really fast (#30811)

This commit is contained in:
Jonah Williams
2019-04-15 08:59:28 -07:00
committed by GitHub
parent 27b058a414
commit 301eaa8c32
7 changed files with 163 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/base/logger.dart';
@@ -178,7 +179,7 @@ void main() {
}, overrides: <Type, Generator>{
Logger: () => StdoutLogger(),
Stdio: () => mockStdio,
WebSocketConnector: () => (String url) async => throw const SocketException('test'),
WebSocketConnector: () => (String url, {CompressionOptions compression}) async => throw const SocketException('test'),
});
testUsingContext('refreshViews', () {