//arrow-meta-test/arrow.meta.plugin.testing/CompilerTest/Companion
[jvm]
object Companion : ConfigSyntax, CodeSyntax, AssertSyntax
Name | Summary |
---|---|
addArguments | [jvm] open override fun addArguments(vararg element: String): Config Adds the necessary arguments to run the compilation. |
addCommandLineProcessors | [jvm] open override fun addCommandLineProcessors(vararg element: CommandLineProcessor): Config Adds command line processors for the compiler plugins. |
addCompilerPlugins | [jvm] open override fun addCompilerPlugins(vararg element: CompilerPlugin): Config Adds the compiler plugins to run the compilation. |
addDependencies | [jvm] open override fun addDependencies(vararg element: Dependency): Config Adds the necessary dependencies to run the compilation. |
addMetaPlugins | [jvm] open override fun addMetaPlugins(vararg element: Meta): Config Adds the Meta Plugins to run the compilation. |
addPluginOptions | [jvm] open override fun addPluginOptions(vararg element: PluginOption): Config Adds options for the compiler plugins. |
addSymbolProcessors | [jvm] open override fun addSymbolProcessors(vararg element: SymbolProcessorProvider): Config Adds KSP symbol processors. |
allOf | [jvm] open override fun allOf(vararg elements: Assert.SingleAssert): Assert Allows to provide several Assert.SingleAssert. [jvm] open override fun allOf(elements: List<Assert.SingleAssert>): Assert |
analysisLib | [jvm] open override fun analysisLib(currentVersion: String?): Dependency |
compilesWith | [jvm] open override fun compilesWith(f: (String) -> Boolean): Assert.SingleAssert Checks that code snippet compiles successfully and (possible) warning message has a certain property. |
evalsTo | [jvm] open override fun Code.Source.evalsTo(value: Any?, onError: (Throwable) -> Any?): Assert.SingleAssert Checks if a code snippet evals to a provided value after the compilation. This operation loads all the generated classes and run the code snippet by reflection. |
failsWith | [jvm] open override fun failsWith(f: (String) -> Boolean): Assert.SingleAssert Checks both that code snippet fails and the error message has a certain property which is checked by a provided function. |
invoke | [jvm] operator fun invoke(f: CompilerTest.Companion.() -> CompilerTest): CompilerTest |
plus | [jvm] open operator override fun Assert.SingleAssert.plus(other: Assert.SingleAssert): Assert Allows to provide several Assert.SingleAssert. [jvm] open operator override fun Config.plus(other: Config): List<Config> Allows to combine Config. |
sources | [jvm] open override fun sources(vararg sources: Code.Source): Code Allows to indicate several sources to be compiled. [jvm] open override fun sources(sources: List<Code.Source>): Code |
Name | Summary |
---|---|
compiles | [jvm] open override val compiles: Assert.SingleAssert Checks that code snippet compiles successfully. |
emptyAssert | [jvm] open override val emptyAssert: Assert.SingleAssert |
emptyCode | [jvm] open override val emptyCode: Code |
emptyConfig | [jvm] open override val emptyConfig: Config |
fails | [jvm] open override val fails: Assert.SingleAssert Checks that code snippet fails. |
metaDependencies | [jvm] open override val metaDependencies: List<Config> Simplifies the configuration with a default configuration: Arrow Meta Compiler Plugin + Arrow as a dependency. |
source | [jvm] open override val String.source: Code.Source Returns a Source object from a String. |
Do you like Arrow?
✖