use of com.google.jstestdriver.PathResolver in project intellij-plugins by JetBrains.
the class JstdConfigParsingUtils method resolveConfiguration.
@NotNull
public static ResolvedConfiguration resolveConfiguration(@NotNull ParsedConfiguration parsedConfiguration) {
PathResolver pathResolver = new PathResolver(parsedConfiguration.getBasePaths(), Collections.emptySet(), new DisplayPathSanitizer());
FlagsImpl flags = new FlagsImpl();
flags.setServer("test:1");
Configuration resolved = parsedConfiguration.resolvePaths(pathResolver, flags);
return (ResolvedConfiguration) resolved;
}
use of com.google.jstestdriver.PathResolver in project intellij-plugins by JetBrains.
the class JstdTestFilePathIndex method doIndexConfigFile.
@NotNull
private static Map<String, Void> doIndexConfigFile(@NotNull Reader configFileReader, @NotNull BasePaths initialBasePaths) {
YamlParser yamlParser = new YamlParser();
final Map<String, Void> map = new THashMap<>();
ParsedConfiguration parsedConfiguration = (ParsedConfiguration) yamlParser.parse(configFileReader, initialBasePaths);
PathResolver pathResolver = new PathResolver(parsedConfiguration.getBasePaths(), Collections.emptySet(), new DisplayPathSanitizer());
FlagsImpl flags = new FlagsImpl();
flags.setServer("test:1");
ResolvedConfiguration resolvedConfiguration = (ResolvedConfiguration) parsedConfiguration.resolvePaths(pathResolver, flags);
doPutAll(map, resolvedConfiguration.getTests());
doPutAll(map, resolvedConfiguration.getFilesList());
return map;
}
Aggregations