Files
sdk/pkg/linter/test/doc_test.dart
T
pq eeb3101b3a stop fetching analysis server sources
Change-Id: I4d07d347567662af508e4af5c8196e64ba865b9a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322366
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2023-08-23 21:59:53 +00:00

22 lines
780 B
Dart

// Copyright (c) 2022, 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:test/test.dart';
import '../tool/machine.dart';
import 'util/test_utils.dart';
void main() {
group('doc generation', () {
setUp(setUpSharedTestEnvironment);
test('fixStatus (sanity)', () {
var fixStatusMap = readFixStatusMap();
// Doc generation reads the fix status map to associate fix status
// badges with rule documentation. Here we check one for sanity.
// If the file moves or format changes, we'd expect this to fail.
expect(fixStatusMap['always_declare_return_types'], 'hasFix');
});
});
}