blob: 976fc6295c2e4f230a506b86c356391e1ca50a55 [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/analysis_options/error/option_codes.dart';
import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'analysis_options_test_support.dart';
main() {
defineReflectiveSuite(() {
defineReflectiveTests(IncludeFileNotFoundTest);
});
}
@reflectiveTest
class IncludeFileNotFoundTest extends AbstractAnalysisOptionsTest {
void test_notFound() {
assertErrorsInCode('''
# We don't depend on pedantic, but we should consider adding it.
include: package:pedantic/analysis_options.yaml
''', [error(AnalysisOptionsWarningCode.INCLUDE_FILE_NOT_FOUND, 74, 38)]);
}
}