Documentation
¶
Overview ¶
Package mockplugin owns deterministic Lua plugin fixtures for Go tests.
Each builder returns one small source with a distinct type key, one model card per capability, and no network use. Tests install a fixture with Install, create a provider instance for its type key, and route by provider ID plus Fixture.Models entry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixture ¶
type Fixture struct {
PluginName string
TypeKey string
Models []string
Handlers []string
Source string
}
Fixture is one deterministic Lua plugin source: its type key, the bare model names its get_model_infos declares, the handlers it implements, and the source itself.
func Denied ¶
func Denied() Fixture
Denied serves one chat model reporting an authentication failure.
func Embeddings ¶
func Embeddings() Fixture
Embeddings serves one embeddings model returning one vector per input.
func Limited ¶
func Limited() Fixture
Limited serves one chat model reporting quota exhaustion on every call.
func Tools ¶
func Tools() Fixture
Tools serves one chat model echoing the first requested tool call.
func Transcribe ¶
func Transcribe() Fixture
Transcribe serves one transcription model with text plus segments.
func VideoPending ¶
func VideoPending() Fixture
VideoPending serves one video model pending at submit, completed on poll.