testutil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertGoldenFile

func AssertGoldenFile(t *testing.T, actual []byte, goldenPath string)

AssertGoldenFile compares output with golden file

func CreateTestLogEntry

func CreateTestLogEntry(t *testing.T, entryType, content string) *models.LogEntry

CreateTestLogEntry creates a LogEntry for testing

func CreateTestProcessedEntry

func CreateTestProcessedEntry(t *testing.T, entryType, content string) *models.ProcessedEntry

CreateTestProcessedEntry creates a ProcessedEntry for testing

func CreateTestToolCallWithResult

func CreateTestToolCallWithResult(t *testing.T, toolName string, delay time.Duration) (toolCall *models.LogEntry, toolResult *models.LogEntry)

CreateTestToolCallWithResult creates a matched tool call and result pair

func CreateToolCallEntry

func CreateToolCallEntry(t *testing.T, toolName string, input interface{}) *models.LogEntry

CreateToolCallEntry creates a tool call entry for testing

func CreateToolResultEntry

func CreateToolResultEntry(t *testing.T, toolUseID string, output string) *models.LogEntry

CreateToolResultEntry creates a tool result entry for testing

func GenerateTestUUID

func GenerateTestUUID() string

GenerateTestUUID generates a UUID for testing

func LoadTestFile

func LoadTestFile(t *testing.T, path string) []byte

LoadTestFile loads a test fixture file

Types

This section is empty.

Jump to

Keyboard shortcuts

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