domaintest

package
v1.22.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package domaintest provides factories for creating domain objects in tests. Each factory returns a valid object with unique IDs and sensible defaults. Mutate the returned struct to customize for your test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage() domain.Message

NewMessage returns a valid assistant message with a text block.

func NewTextBlock

func NewTextBlock() domain.Block

NewTextBlock returns a text block at index 0.

func NewThinkingBlock

func NewThinkingBlock() domain.Block

NewThinkingBlock returns a thinking block at index 0.

func NewToolUseBlock

func NewToolUseBlock() domain.Block

NewToolUseBlock returns a tool_use block at index 0.

func NewUserMessage

func NewUserMessage() domain.Message

NewUserMessage returns a valid user message with a text block.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL