tock / ai.tock.bot.test.mock / mockConnector

mockConnector

inline fun <reified T> mockConnector(connector: T = mockk(relaxed = true), bus: BotBus = mockk(relaxed = true), test: (BotBus) -> Any?): T (source)

Provides a mock of ConnectorDef and run the test block.