7320da0d19
Work towards https://github.com/dart-lang/sdk/issues/53578 Change-Id: Ia07d999abc2fcf4b8195c9f7688799bc099a1d88 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/341385 Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Alexander Thomas <athom@google.com> Reviewed-by: Jonas Termansen <sortie@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
39 lines
916 B
Dart
39 lines
916 B
Dart
// Copyright (c) 2015, 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 'dart:io';
|
|
|
|
import 'package:analyzer/src/lint/io.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
import '../tool/checks/check_all_yaml.dart';
|
|
import 'mocks.dart';
|
|
|
|
void main() {
|
|
group('integration', () {
|
|
group('config', () {
|
|
var currentOut = outSink;
|
|
var collectingOut = CollectingSink();
|
|
setUp(() {
|
|
exitCode = 0;
|
|
outSink = collectingOut;
|
|
});
|
|
tearDown(() {
|
|
collectingOut.buffer.clear();
|
|
outSink = currentOut;
|
|
exitCode = 0;
|
|
});
|
|
});
|
|
|
|
group('examples', () {
|
|
test('all.yaml', () {
|
|
var errors = checkAllYaml();
|
|
if (errors != null) {
|
|
fail(errors);
|
|
}
|
|
});
|
|
});
|
|
});
|
|
}
|