Chromium Code Reviews

Unified Diff: lib/src/backend/metadata.dart

Issue 1008483003: Add a function to parse metadata into a usable object. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | lib/src/frontend/test_on.dart » ('j') | lib/src/runner/parse_metadata.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/backend/metadata.dart
diff --git a/lib/src/backend/metadata.dart b/lib/src/backend/metadata.dart
new file mode 100644
index 0000000000000000000000000000000000000000..738a7cf5e692457fee3d5a72ff9c5c28aedeaf97
--- /dev/null
+++ b/lib/src/backend/metadata.dart
@@ -0,0 +1,16 @@
+// 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.
+
+library unittest.backend.metadata;
+
+/// Metadata for a test or test suite.
+///
+/// This metadata comes from declarations on the test itself; it doesn't include
+/// configuration from the user.
+class Metadata {
+ /// The expressions indicating which platforms the suite supports.
+ final String testOn;
Bob Nystrom 2015/03/12 21:03:21 Why is this a String and not a TestOn?
nweiz 2015/03/12 23:40:22 It should really be a PlatformSelector, actually,
+
+ Metadata(this.testOn);
+}
« no previous file with comments | « no previous file | lib/src/frontend/test_on.dart » ('j') | lib/src/runner/parse_metadata.dart » ('J')

Powered by Google App Engine