parseMetadata function
Parse the test metadata for the test file at path
with contents
.
The platformVariables
are the set of variables that are valid for platform
selectors in suite metadata, in addition to the built-in variables that are
allowed everywhere.
Throws an AnalysisError
if parsing fails or a FormatException if the
test annotations are incorrect.
Implementation
Metadata parseMetadata(
String path, String contents, Set<String> platformVariables) =>
_Parser(path, contents, platformVariables).parse();