mvrx-mocking / com.airbnb.mvrx.mocking.printer / MockPrinterConfiguration

MockPrinterConfiguration

class MockPrinterConfiguration

Set configuration details for how mock state is generated.

Constructors

<init>

MockPrinterConfiguration(mockPackage: (mockedView: Any) -> String = { mockedView -> val packageName = mockedView::class.qualifiedName!!.substringBeforeLast(".") "$packageName.mocks" }, customTypePrinters: List<TypePrinter<*>> = emptyList())

Set configuration details for how mock state is generated.

Properties

customTypePrinters

val customTypePrinters: List<TypePrinter<*>>

Define functions for generating code for a custom class.

mockPackage

val mockPackage: (mockedView: Any) -> String

Given a MavericksView that we are generating mock states for, returns which package name to use for the generated file.