detekt
Toggle table of contents
1.23.8
jvm
Platform filter
jvm
Switch theme
Search in API
detekt
detekt-test-utils
/
io.github.detekt.test.utils
/
compileContentForTest
compile
Content
For
Test
fun
compileContentForTest
(
content
:
String
,
filename
:
String
=
"Test.kt"
)
:
KtFile
fun
compileContentForTest
(
content
:
String
,
path
:
Path
)
:
KtFile
Use this method if you define a kt file/class as a plain string in your test.