Files
coder/codersdk/workspacesdk/agentconnmock/doc.go
T
Danielle Maywood 5e84d257b7 refactor: convert workspacesdk.AgentConn to an interface (#19392)
Fixes https://github.com/coder/internal/issues/907

We convert `workspacesdk.AgentConn` to an interface and generate a mock
for it. This allows writing `coderd` tests that rely on the agent's HTTP
api to not have to set up an entire tailnet networking stack.
2025-08-20 10:00:44 +01:00

5 lines
213 B
Go

// Package agentconnmock contains a mock implementation of workspacesdk.AgentConn for use in tests.
package agentconnmock
//go:generate mockgen -destination ./agentconnmock.go -package agentconnmock .. AgentConn