testutil

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testutil provides shared helpers for integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntegrationConfig

func IntegrationConfig(t *testing.T) *config.Config

IntegrationConfig returns a Config for integration tests and skips the test if no API key is available. Tests that call this are safe to run in CI by setting SUPERMODEL_API_KEY; on developer machines the local config file is used as a fallback.

func MinimalGoDir

func MinimalGoDir(t *testing.T) string

MinimalGoDir creates a temp directory with a tiny Go repository and returns its path. Useful when commands need a directory rather than a ZIP.

func MinimalGoZip

func MinimalGoZip(t *testing.T) string

MinimalGoZip writes a tiny Go repository into a temp ZIP file and returns its path. The caller is responsible for removing it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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