use of org.graalvm.polyglot.tck.Snippet in project graal by oracle.
the class ScriptTest method createScriptTests.
@Parameterized.Parameters(name = "{0}")
public static Collection<TestRun> createScriptTests() {
context = new TestContext();
final Collection<TestRun> res = new LinkedHashSet<>();
for (String lang : TestUtil.getRequiredLanguages(context)) {
for (Snippet script : context.getScripts(null, lang)) {
res.add(new TestRun(new AbstractMap.SimpleImmutableEntry<>(lang, script), Collections.emptyList()));
}
}
return res;
}
Aggregations