compileContentForTest

fun compileContentForTest(content: String, filename: String = TEST_FILENAME): KtFile

Use this method if you define a kt file/class as a plain string in your test.