blob: 88dbc31d2da6f5db8d2bdfb63f24d978f202e421 [file] [log] [blame]
// Copyright (c) 2018, 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.
@TestOn('vm')
library dart_style.test.fix_test;
import 'package:dart_style/dart_style.dart';
import 'package:test/test.dart';
import 'utils.dart';
void main() async {
await testFile('short/fixes/named_default_separator.unit',
fixes: [StyleFix.namedDefaultSeparator]);
await testFile('short/fixes/doc_comments.stmt',
fixes: [StyleFix.docComments]);
await testFile('short/fixes/function_typedefs.unit',
fixes: [StyleFix.functionTypedefs]);
await testFile('short/fixes/optional_const.unit',
fixes: [StyleFix.optionalConst]);
await testFile('short/fixes/optional_new.stmt',
fixes: [StyleFix.optionalNew]);
await testFile('short/fixes/single_cascade_statements.stmt',
fixes: [StyleFix.singleCascadeStatements]);
}