tock / ai.tock.bot.test.mock

## Package ai.tock.bot.test.mock

### Functions

#### checkPreconditions | Runs StoryDefinitionBase.checkPreconditions. `fun StoryDefinitionBase.checkPreconditions(bus: BotBus): Any?`
#### mockBus | Execute test with a bus mocked with default BotBus configuration. `fun mockBus(bus: BotBus = mockk(), test: (BotBus) -> Any?): Unit`
#### mockConnector | Provides a mock of ConnectorDef and run the test block. `fun <T> mockConnector(connector: T = mockk(relaxed = true), bus: BotBus = mockk(relaxed = true), test: (BotBus) -> Any?): T`
#### mockMessenger | Execute test with a bus mocked with classic messenger extensions. `fun mockMessenger(bus: BotBus = mockk(), test: (BotBus) -> Any?): Unit`
#### mockTwitter | Execute test with a bus mocked with classic twitter extensions. `fun mockTwitter(bus: BotBus, test: (BotBus) -> Any?): Unit`
#### provideMockedBusCommon | Default mockk BotBus configuration. `fun provideMockedBusCommon(bus: BotBus = mockk()): BotBus`
#### provideMockedMessengerBus | Mock classic messenger extensions. `fun provideMockedMessengerBus(bus: BotBus = mockk()): BotBus`
#### provideMockedTwitterBus | Mock classic twitter extensions. `fun provideMockedTwitterBus(bus: BotBus): BotBus`
#### selectStepFromData | Runs the select step from Bus phase. `fun StoryDefinitionBase.selectStepFromData(def: HandlerDef<*>, data: Any?): StoryStep<*>?`
#### test | Test a StoryDefinition with a mocked (mockk) BotBus. `fun StoryDefinitionBase.test(bus: BotBus): Unit`