Documentation
¶
Overview ¶
Package testutil provides shared test fixtures and helpers for Provenance internal packages. Import this package from any _test.go file that needs an in-memory database or pre-built tasks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsTask ¶
ContainsTask checks if a task with the given ID is in the slice.
func MakeTask ¶
MakeTask creates a minimal Task with a unique UUIDv7 for testing. The task uses StatusOpen, PriorityMedium, TaskTypeTask, and PhaseUnscoped.
func MakeTaskID ¶
MakeTaskID creates a TaskID with a unique UUIDv7 for testing.
func OpenTestDB ¶
OpenTestDB returns a fresh in-memory sqlite.DB for testing. The database is closed automatically when the test ends.
func TestModels ¶
func TestModels() []ptypes.ModelEntry
TestModels returns the default model entries used for testing. These match the canonical Anthropic API model identifiers.
Types ¶
This section is empty.