Documentation
¶
Index ¶
- func DefaultTestWorkflow() json.RawMessage
- func NewTestService(t *testing.T) taskflow.TaskFlow
- func NewTestServiceWithBus(t *testing.T) (taskflow.TaskFlow, repo.Store, *eventbus.EventBus)
- func SeedActor(t *testing.T, svc taskflow.TaskFlow, name string, role model.Role) model.Actor
- func SeedBoard(t *testing.T, svc taskflow.TaskFlow, slug string) model.Board
- func SeedTask(t *testing.T, svc taskflow.TaskFlow, boardSlug, title, createdBy string) model.Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTestWorkflow ¶
func DefaultTestWorkflow() json.RawMessage
DefaultTestWorkflow returns a minimal valid workflow JSON for testing.
func NewTestService ¶
NewTestService creates a fresh in-memory SQLite store and service for testing. Enables development mode (allows private webhook URLs). Returns the taskflow.TaskFlow interface, not the concrete type.
func NewTestServiceWithBus ¶
NewTestServiceWithBus creates a service with an event bus and returns the service, store, and bus for integration testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.