FakeQuickChatActionRepository

A test double for QuickChatActionRepository that keeps actions in an in-memory list (sorted by position).

The in-memory list is exposed reactively through getAllActions.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Returns the current in-memory snapshot.

Functions

Link copied to clipboard
open suspend override fun delete(action: QuickChatAction)
Link copied to clipboard
open suspend override fun deleteAll()
Link copied to clipboard
open override fun getAllActions(): Flow<List<QuickChatAction>>
Link copied to clipboard
open fun reset()

Resets all registered state flows and custom actions to their initial state.

Link copied to clipboard

Seeds the current list of actions (useful for test setup).

Link copied to clipboard
open suspend override fun setItemPosition(uuid: Long, newPos: Int)
Link copied to clipboard
open suspend override fun upsert(action: QuickChatAction)