Versions in this module Expand all Collapse all v1 v1.0.21 Apr 28, 2026 Changes in this version + var ErrStubUnconfigured = errors.New("testutil.StubAPIClient: no body or err configured") + type FakeTransport struct + func NewWrappedFake(inner transport.IPC, addr string) *FakeTransport + func (t *FakeTransport) Address(_ string) string + func (t *FakeTransport) Cleanup(_ string) + func (t *FakeTransport) CleanupCount() int + func (t *FakeTransport) Dial(_ string) (net.Conn, error) + func (t *FakeTransport) DidCleanup() bool + func (t *FakeTransport) Listen(_ string) (net.Listener, error) + type StubAPIClient struct + Body string + Calls int + Err error + GotBody interface{} + GotMethod string + GotPath string + func (s *StubAPIClient) CallAPI(_ context.Context, method, path string, body interface{}) (json.RawMessage, error)