- bytecodeTextMultifile - framework for bytecode text tests

with multiple Kotlin source files
- bytecodeTextMultifile/partMembersCall, initial import
This commit is contained in:
Dmitry Petrov
2015-09-09 18:36:54 +03:00
parent 2931e474e1
commit 5f9a59d655
7 changed files with 123 additions and 21 deletions
@@ -183,6 +183,16 @@ public class ClassFileFactory implements OutputFileCollection {
return answer.toString();
}
@NotNull
@TestOnly
public Map<String, String> createTextForEachFile() {
Map<String, String> answer = new LinkedHashMap<String, String>();
for (OutputFile file : asList()) {
answer.put(file.getRelativePath(), file.asText());
}
return answer;
}
@NotNull
public PackageCodegen forPackage(@NotNull FqName fqName, @NotNull Collection<JetFile> files) {
assert !isDone : "Already done!";