Line data Source code
1 : // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 2 : // for details. All rights reserved. Use of this source code is governed by a 3 : // BSD-style license that can be found in the LICENSE file. 4 : 5 : import 'package:meta/meta_meta.dart'; 6 : 7 : /// An annotation for marking a test suite as skipped. 8 : @Target({TargetKind.library}) 9 : class Skip { 10 : /// The reason the test suite is skipped, or `null` if no reason is given. 11 : final String? reason; 12 : 13 : /// Marks a suite as skipped. 14 : /// 15 : /// If [reason] is passed, it's included in the test output as the reason the 16 : /// test is skipped. 17 0 : const Skip([this.reason]); 18 : }