Builder

class Builder

Builder for creating a CompileTest

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
expect
Link copied to clipboard
fun expect(vararg expectation: CompileTest.Expectation): CompileTest.Builder
Adds expectations
hashCode
Link copied to clipboard
open fun hashCode(): Int
kotlin
Link copied to clipboard
fun kotlin(filename: String, content: String): CompileTest.Builder
Adds a kotlin source file
processor
Link copied to clipboard
fun processor(vararg processor: Processor): CompileTest.Builder
Adds annotation processors
source
Link copied to clipboard
fun source(vararg sourceFile: SourceFile): CompileTest.Builder
Adds source files
toString
Link copied to clipboard
open fun toString(): String

Extensions

expectFileCount
Link copied to clipboard
fun CompileTest.Builder.expectFileCount(count: Int): CompileTest.Builder
Adds an expectation that checks for the exact number of files to be created
expectFileToMatch
Link copied to clipboard
fun CompileTest.Builder.expectFileToMatch(file: String, expectedContent: String): CompileTest.Builder
Adds an expectation that matches the contents of a file with the expectedContent
expectFileToNotExist
Link copied to clipboard
Adds an expectation that checks that the given file was NOT created