test

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGeminiClient

func NewGeminiClient(t *testing.T) gollem.LLMClient

func PrivateField added in v0.17.2

func PrivateField(t *testing.T, structPtr any, name string) any

PrivateField reads an unexported struct field by name via reflection.

It is intended for tests that need to verify the effect of functional options (e.g. gollem-dev/tools `WithXxx` helpers) on an external ToolSet whose fields are unexported. structPtr must be a non-nil pointer to a struct. The returned value is the field value as `any`; callers assert the concrete type with gt.

Types

type EnvVars

type EnvVars struct {
	// contains filtered or unexported fields
}

func NewEnvVars

func NewEnvVars(t *testing.T, keys ...string) EnvVars

func (EnvVars) Get

func (e EnvVars) Get(key string) string

Jump to

Keyboard shortcuts

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