blob: 6e3a0e303ff1534557154a3b933aa27db52c779e [file] [log] [blame]
// Copyright (c) 2013, 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 '../test_pub.dart';
Future<void> expectValidation(ValidatorCreator fn,
{hints, warnings, errors}) async {
final validator = await validatePackage(fn);
expect(validator.errors, errors ?? isEmpty);
expect(validator.warnings, warnings ?? isEmpty);
expect(validator.hints, hints ?? isEmpty);