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 applying a set of user-defined tags to a test suite. 8 : /// 9 : /// See [the documentation on tagging tests][tagging tests]. 10 : /// 11 : /// [tagging tests]: https://github.com/dart-lang/test/blob/master/pkgs/test/README.md#tagging-tests 12 : @Target({TargetKind.library}) 13 : class Tags { 14 : /// The tags for the test suite. 15 0 : Set<String> get tags => _tags.toSet(); 16 : 17 : final Iterable<String> _tags; 18 : 19 : /// Applies a set of user-defined tags to a test suite. 20 0 : const Tags(this._tags); 21 : }