Documentation
¶
Overview ¶
Package clienttest is the conformance suite of client.Client: any implementation (in process, over HTTP, a future one) must pass Run, so that a front end behaves the same against all of them.
The suite builds its own harness (a scripted model, a fake sandbox) and asks the implementation under test for clients of two users over it:
clienttest.Run(t, func(t *testing.T, h *harness.Harness, user string) client.Client {
return inproc.New(h, user, inproc.WithModels(clienttest.Models, clienttest.DefaultModel))
})
Index ¶
Constants ¶
const DefaultModel = "gpt-test"
DefaultModel is the default model of the clients under test.
Variables ¶
var Models = []string{"gpt-test"}
Models and DefaultModel are what the clients under test must report from Models.