Documentation
¶
Index ¶
- func AssertFileContains(t *testing.T, path, expectedContent string)
- func AssertFileExists(t *testing.T, path string)
- func CreateTestConversation(t *testing.T, db *sql.DB, model string) string
- func CreateTestDir(t *testing.T) string
- func CreateTestFile(t *testing.T, content string) string
- func CreateTestMessage(t *testing.T, db *sql.DB, conversationID, role, content string) string
- func MockAPIClient(t *testing.T, _ []core.MessageResponse) *core.Client
- func SetupTestDB(t *testing.T) *sql.DB
- func WaitForCondition(t *testing.T, timeout time.Duration, interval time.Duration, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertFileContains ¶
AssertFileContains checks that a file contains expected content
func AssertFileExists ¶
AssertFileExists checks that a file exists and has expected content
func CreateTestConversation ¶
CreateTestConversation creates a conversation with test data
func CreateTestDir ¶
CreateTestDir creates a temporary test directory
func CreateTestFile ¶
CreateTestFile creates a temporary test file with content
func CreateTestMessage ¶
CreateTestMessage creates a message in the database
func MockAPIClient ¶
MockAPIClient returns a mock API client for testing This is a placeholder - actual implementation depends on whether you have mocking infrastructure
func SetupTestDB ¶
SetupTestDB creates a temporary test database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.