blob: 36b7ad33dc2aaf8030eadfcbdaf5793e0ec9c35a [file] [log] [blame]
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/src/lint/io.dart';
import 'package:analyzer/src/lint/linter.dart';
import 'package:linter/src/analyzer.dart';
import 'package:linter/src/cli.dart' as cli;
import 'package:test/test.dart';
import '../mocks.dart';
void main() {
group('exhaustive_cases', () {
final currentOut = outSink;
final collectingOut = CollectingSink();
setUp(() => outSink = collectingOut);
tearDown(() {
outSink = currentOut;
test('exhaustive_cases', () async {
await cli.runLinter([
], LinterOptions());
contains('2 files analyzed, 1 issue found, in'));