Greg Spencer 6bfd413bee
Synchronizes analysis_options.yaml files, and turns on Function typedef lint. (#5419)
Addresses flutter/flutter#18028 for the engine repo, and synchronizes the analysis_options.yaml files between the engine and the flutter/flutter repo.
2018-05-30 16:06:05 -07:00

20 lines
585 B
Dart

import 'dart:async';
import 'package:frontend_server/server.dart';
import 'package:mockito/mockito.dart';
import 'package:test/test.dart';
import 'package:vm/frontend_server.dart' as frontend show CompilerInterface;
class _MockedCompiler extends Mock implements frontend.CompilerInterface {}
Future<int> main() async {
group('basic', () {
final frontend.CompilerInterface compiler = new _MockedCompiler();
test('train with mocked compiler completes', () async {
expect(await starter(<String>['--train'], compiler: compiler), equals(0));
});
});
return 0;
}